Input: maplecontrol - remove redundant drvdata resetting

The driver core automatically resets driver data to NULL on probe
failures and device removal, so we can remove it from the driver.

Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260703-b4-maple-cleanup-v1-10-41e424964da5@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov 2026-07-03 22:57:33 -07:00
parent e3e377eac4
commit d4db324ecd

View File

@ -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;