HID: hyperv: NULL check before some freeing functions is not needed.
authorLucas Tanure <tanure@linux.com>
Sat, 29 Feb 2020 17:30:07 +0000 (17:30 +0000)
committerWei Liu <wei.liu@kernel.org>
Thu, 5 Mar 2020 14:17:11 +0000 (14:17 +0000)
commit5313b2a58ef02e2b077d7ae8088043609e3155b0
tree025a48bb932ac5401042b5ac44e28b06c75f9db9
parent8c1b0767ae0c4b18cd967556aa6ddc7aab5bef0d
HID: hyperv: NULL check before some freeing functions is not needed.

Fix below warnings reported by coccicheck:
drivers/hid/hid-hyperv.c:197:2-7: WARNING: NULL check before some freeing functions is not needed.
drivers/hid/hid-hyperv.c:211:2-7: WARNING: NULL check before some freeing functions is not needed.

Signed-off-by: Lucas Tanure <tanure@linux.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hid/hid-hyperv.c