Skip to content
Commit 07c6338a authored by Jiri Kosina's avatar Jiri Kosina Committed by Greg Kroah-Hartman
Browse files

HID: sony: remove duplicate NULL check before calling usb_free_urb()



[ Upstream commit b328dd02 ]

usb_free_urb() does the NULL check itself, so there is no need to duplicate
it prior to calling.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: e1cd4004 ("HID: sony: Fix a potential memory leak in sony_probe()")
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 40d609b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment