[PATCH] kfree cleanup: misc remaining drivers
This is the remaining misc drivers/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in misc files in drivers/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org> Acked-by: Roland Dreier <rolandd@cisco.com> Acked-by: Pierre Ossman <drzeus@drzeus.cx> Acked-by: Jean Delvare <khali@linux-fr.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: Len Brown <len.brown@intel.com> Acked-by: "Antonino A. Daplas" <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
2ea7533060
commit
6044ec8882
@@ -857,8 +857,7 @@ adbhid_input_register(int id, int default_id, int original_handler_id,
|
||||
static void adbhid_input_unregister(int id)
|
||||
{
|
||||
input_unregister_device(adbhid[id]->input);
|
||||
if (adbhid[id]->keycode)
|
||||
kfree(adbhid[id]->keycode);
|
||||
kfree(adbhid[id]->keycode);
|
||||
kfree(adbhid[id]);
|
||||
adbhid[id] = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user