diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-12-08 15:38:06 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 12:57:06 -0800 |
commit | 1a5d76dbe825fa6deba3d8979bbd334ea17b6dcc (patch) | |
tree | c9536774f9bd2c3ebb81467b090f46e6185ac52a /net/rds | |
parent | 6b8fbde41866306fa910754a59671b27aa5cfd37 (diff) | |
download | op-kernel-dev-1a5d76dbe825fa6deba3d8979bbd334ea17b6dcc.zip op-kernel-dev-1a5d76dbe825fa6deba3d8979bbd334ea17b6dcc.tar.gz |
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/)
// <smpl>
@r1 forall@
type T; identifier i;
@@
* T *i = NULL;
... when != i
* kfree(i);
// </smpl>
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/rds')
0 files changed, 0 insertions, 0 deletions