staging: most: hdm-usb: remove redundant conditions
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 19 Aug 2016 09:12:52 +0000 (11:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 14:53:57 +0000 (16:53 +0200)
This patch removes the duplication of the expression
(urb->status == -ENOENT || urb->status == -ECONNRESET).

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c

index 57d6c6d10a03c077d29cc907bc43acd1d9dff0ed..ddee28176c3b4343974a5e19aef0b0dacf76cf2a 100644 (file)
@@ -410,9 +410,7 @@ static void hdm_write_completion(struct urb *urb)
                return;
        }
 
-       if (unlikely(urb->status && !(urb->status == -ENOENT ||
-                                     urb->status == -ECONNRESET ||
-                                     urb->status == -ESHUTDOWN))) {
+       if (unlikely(urb->status && urb->status != -ESHUTDOWN)) {
                mbo->processed_length = 0;
                switch (urb->status) {
                case -EPIPE:
@@ -575,9 +573,7 @@ static void hdm_read_completion(struct urb *urb)
                return;
        }
 
-       if (unlikely(urb->status && !(urb->status == -ENOENT ||
-                                     urb->status == -ECONNRESET ||
-                                     urb->status == -ESHUTDOWN))) {
+       if (unlikely(urb->status && urb->status != -ESHUTDOWN)) {
                mbo->processed_length = 0;
                switch (urb->status) {
                case -EPIPE: