mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
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:
parent
e3e377eac4
commit
d4db324ecd
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user