diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-07-03 22:57:33 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-14 10:17:50 -0700 |
| commit | d4db324ecdc6b5372c4dc34bd0b8a5ac8d5cb38c (patch) | |
| tree | b8c4f18fbd0bd6f0034038ce7425149d271d3579 | |
| parent | e3e377eac49e122570e33407bcd89c957cc7eb38 (diff) | |
| download | linux-next-d4db324ecdc6b5372c4dc34bd0b8a5ac8d5cb38c.tar.gz linux-next-d4db324ecdc6b5372c4dc34bd0b8a5ac8d5cb38c.zip | |
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>
| -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; |
