From: Peter Senna Tschudin Date: Sat, 8 Dec 2012 17:38:06 +0000 (-0200) Subject: drivers/base/core.c: Remove two unused variables and two useless calls to kfree X-Git-Tag: v3.9-rc1~128^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a5d76dbe825fa6deba3d8979bbd334ea17b6dcc;p=pandora-kernel.git drivers/base/core.c: Remove two unused variables and two useless calls to kfree old_class_name, and new_class_name are never used. This patch remove the declaration and calls to kfree. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r1 forall@ type T; identifier i; @@ * T *i = NULL; ... when != i * kfree(i); // Signed-off-by: Peter Senna Tschudin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed