]> 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)
commit035a4862478baf7e422016f706cfd5dfd49c253f
tree025a48bb932ac5401042b5ac44e28b06c75f9db9
parent7f80f8b984a3d876490cbbb6a82b1e34ceac2a36
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