]> git.baikalelectronics.ru Git - kernel.git/commit
USB: core: hub.c: use usb_control_msg_send() in a few places
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2020 15:37:49 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 09:02:39 +0000 (11:02 +0200)
commit2968984e6aee7b6761797cd9c4a9fbfb9cbc53b3
tree3d248381c7217fe92f35c75d66c0582874ef0fcf
parent0e068facb0c2a2d4f2b85ffa4b675ba9c1b79bba
USB: core: hub.c: use usb_control_msg_send() in a few places

There are a few calls to usb_control_msg() that can be converted to use
usb_control_msg_send() instead, so do that in order to make the error
checking a bit simpler and the code smaller.

Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20200914153756.3412156-5-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c