staging: vt6656: use meaningful error code during buffer allocation
authorQuentin Deslandes <quentin.deslandes@itdev.co.uk>
Mon, 20 May 2019 16:39:04 +0000 (16:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:26:57 +0000 (07:26 +0200)
commit19755a124f4c3bc3a5c41f10df066b813f07a5ab
treea7d32180ea54a2f33ce9ceda5fe9b67081159884
parentb59f7650a507c1bb389070d82b4e2c0999004609
staging: vt6656: use meaningful error code during buffer allocation

[ Upstream commit d8c2869300ab5f7a19bf6f5a04fe473c5c9887e3 ]

Check on called function's returned value for error and return 0 on
success or a negative errno value on error instead of a boolean value.

Signed-off-by: Quentin Deslandes <quentin.deslandes@itdev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/vt6656/main_usb.c