]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit609413e7cd3fcfd9ab7315f3a66cd7e05efedf91
tree025a48bb932ac5401042b5ac44e28b06c75f9db9
parent3301175a46d608bf5ca289c06747c5abaa727f92
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