Tag: 207e99c20f029b8ad9784fdb3b857e0a673db949

staging: lustre: ptlrpc: service: 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 makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression ptr; @@ – if (ptr != NULL) kfree(ptr); @@ expression ptr; @@ – if (ptr != NULL) { kfree(ptr); ptr = NULL; – } // In …

Continue reading