staging: vt6656: clean-up registers initialization error path
authorQuentin Deslandes <quentin.deslandes@itdev.co.uk>
Mon, 20 May 2019 16:39:04 +0000 (16:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2019 06:25:04 +0000 (08:25 +0200)
commit07ba60a15843ec22a4eba90ea6baba2e7df75dca
treebff2fee01d4ddf92bf30fc71e10eb9dabe36c0c8
parentd8c2869300ab5f7a19bf6f5a04fe473c5c9887e3
staging: vt6656: clean-up registers initialization error path

Avoid discarding function's return code during register initialization.
Handle it instead and return 0 on success or 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/main_usb.c