mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:00:58 +07:00
HID: zydacron: kfree() NULL pointer cleanup
Checking for NULL pointers before kfree() is redundant. Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
f5fc87905e
commit
6371fe54b5
@ -201,9 +201,7 @@ static void zc_remove(struct hid_device *hdev)
|
||||
struct zc_device *zc = hid_get_drvdata(hdev);
|
||||
|
||||
hid_hw_stop(hdev);
|
||||
|
||||
if (NULL != zc)
|
||||
kfree(zc);
|
||||
kfree(zc);
|
||||
}
|
||||
|
||||
static const struct hid_device_id zc_devices[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user