staging: vt6656: clean function's error path in usbpipe.c
authorQuentin Deslandes <quentin.deslandes@itdev.co.uk>
Mon, 20 May 2019 16:39:01 +0000 (16:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2019 06:25:03 +0000 (08:25 +0200)
commit59608cb1de185613b3a7b1615a9b08480f5a566a
tree0c8f30e2eea4f6242b5e9e5dfe18009efc7c7ec7
parent3fd14ebc2d5233e0fd6a90486cb88f5592875a6b
staging: vt6656: clean function's error path in usbpipe.c

Avoid discarding called function's returned value. Store it instead in
order to act accordingly.

Update error path to return 0 on success and a negative errno value on
error.

Signed-off-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c
drivers/staging/vt6656/usbpipe.h