From 57876fd8bf6b90362ae511c4d201847a1e18bacf Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Fri, 1 May 2015 21:38:02 +0200 Subject: [PATCH] Staging: lustre: llite: dir: remove unneeded null test before free 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); // This patch additionally simplifies one case where the free, and thus the jump to the end of the function, is not needed. Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed