OSDN Git Service

USB: Simplify USB ID table match
authorBastien Nocera <hadess@hadess.net>
Mon, 27 Jul 2020 10:46:42 +0000 (12:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 14:48:02 +0000 (16:48 +0200)
commit0ed9498f9ecfde50c93f3f3dd64b4cd5414d9944
treeecf464c49106976c06fab3dcbaef6e0f3831f6ce
parent754498c1d6369d47b6433e9a05ba926255c2d699
USB: Simplify USB ID table match

usb_device_match_id() supports being passed NULL tables, so no need to
check for it.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20200727104644.149873-1-hadess@hadess.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/generic.c