]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: usb: change return value of function drci_rd_reg
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 27 May 2020 09:06:20 +0000 (11:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 10:24:46 +0000 (12:24 +0200)
commit0ada98930ff1aa648e1c83f33105cd6959afb84c
tree3d65561846f6a7227d185d4c5c6e101f2267ecff
parent78a922fbb56ee3ae83399a38ce2eec0239d61cae
staging: most: usb: change return value of function drci_rd_reg

This patch makes function drci_rd_reg return 0 in case of success
and a negative number else. As no caller is evaluating the number
of bytes transferred by function usb_control_msg this information is
being omitted.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1590570387-27069-4-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c