]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6656: simplify tests of successful urb status
authorAlison Schofield <amsfield22@gmail.com>
Wed, 17 Feb 2016 17:45:28 +0000 (09:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:22:18 +0000 (15:22 -0800)
commitaf5f1c0319a7cd17b9bf86d52f7a56dab0c0ad41
tree9ddf8705c09710bfdf2415b71d949665cb262974
parentee078f40abf049485b2b36b6e85c73ef17753162
staging: vt6656: simplify tests of successful urb status

Use if (status) in tests for successful urb status.

This replaces (status != 0) and (status == STATUS_SUCCESS).
(STATUS_SUCCESS is defined for NDIS status in this driver, but
was being misused)

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c