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)
commitffd069ec04238119f5d4884406b403c599b6eeec
tree3d65561846f6a7227d185d4c5c6e101f2267ecff
parenta0dbe1b24c9b66102243ba8b49783f960edc8663
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