Skip to content
Commit 87fcb6a6 authored by Benjamin Tissoires's avatar Benjamin Tissoires
Browse files

HID: do not call hid_set_drvdata(hdev, NULL) in drivers



This is a common pattern in the HID drivers to reset the drvdata. Some
do it properly, some do it only in case of failure.

But, this is actually already handled by driver core, so there is no need
to do it manually.

[for hid-sensor-hub.c]
Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
[For hid-picolcd_core.c]
Acked-by: default avatarBruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
parent 15d90b24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment