diff options
Diffstat (limited to 'drivers/macintosh/adbhid.c')
-rw-r--r-- | drivers/macintosh/adbhid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index 8f02c155fdc0..c0b46bceb5df 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c | |||
@@ -857,8 +857,7 @@ adbhid_input_register(int id, int default_id, int original_handler_id, | |||
857 | static void adbhid_input_unregister(int id) | 857 | static void adbhid_input_unregister(int id) |
858 | { | 858 | { |
859 | input_unregister_device(adbhid[id]->input); | 859 | input_unregister_device(adbhid[id]->input); |
860 | if (adbhid[id]->keycode) | 860 | kfree(adbhid[id]->keycode); |
861 | kfree(adbhid[id]->keycode); | ||
862 | kfree(adbhid[id]); | 861 | kfree(adbhid[id]); |
863 | adbhid[id] = NULL; | 862 | adbhid[id] = NULL; |
864 | } | 863 | } |