diff options
| -rw-r--r-- | drivers/input/joystick/maplecontrol.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/joystick/maplecontrol.c b/drivers/input/joystick/maplecontrol.c index 19ae238e6c00..cc17a952833a 100644 --- a/drivers/input/joystick/maplecontrol.c +++ b/drivers/input/joystick/maplecontrol.c @@ -148,7 +148,6 @@ static int probe_maple_controller(struct device *dev) fail: input_free_device(idev); kfree(pad); - maple_set_drvdata(mdev, NULL); return error; } @@ -158,7 +157,6 @@ static int remove_maple_controller(struct device *dev) struct dc_pad *pad = maple_get_drvdata(mdev); input_unregister_device(pad->dev); - maple_set_drvdata(mdev, NULL); kfree(pad); return 0; |
