USB: usbfs: remove double evaluation of usb_sndctrlpipe()
authorGeoffrey D. Bennett <g@b4.vu>
Fri, 21 May 2021 17:40:27 +0000 (03:10 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 May 2021 13:27:14 +0000 (15:27 +0200)
commit08377263a932db95e01c70a1b2fe597a605d645a
treeec2ee37d0845f52829862a91954a9632bca077c0
parent1eef7953129c3c1d0ebe5f668f781157acb3fb84
USB: usbfs: remove double evaluation of usb_sndctrlpipe()

usb_sndctrlpipe() is evaluated in do_proc_control(), saved in a
variable, then evaluated again. Use the saved variable instead, to
match the use of usb_rcvctrlpipe().

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/20210521174027.GA116484@m.b4.vu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c