]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 21 May 2019 06:25:04 +0000 (08:25 +0200)
commit6c6796e5139ab1de5e29eb5b66ba9e67f9cddb11
treeed5ca8f246b6cb7fa92e8c5f233cae5bce6f16df
parent1226ee357866f61f91cabe857b1b2c1a439b0991
staging: vt6656: use meaningful error code during buffer allocation

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>
drivers/staging/vt6656/main_usb.c