Tag: e6b9a3b225b804a2683bc173c1261a9ce4a561a0

Staging: lustre: llite: file: remove unneeded null test before free

Author: Julia Lawall <Julia.Lawall@lip6.fr> Kfree can cope with a null argument, so drop null tests. The semantic patch that finds this issue is as follows: (http://coccinelle.lip6.fr/) // @@ expression ptr; @@ – if (ptr != NULL) kfree(ptr); // In the first case, llss can never be null at the point of the kfree anyway. In …

Continue reading