]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: pegasus: simplify logical constraint
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Wed, 18 May 2016 18:40:51 +0000 (20:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2016 20:48:45 +0000 (13:48 -0700)
If !count is true, count < 4 is also true.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/pegasus.c

index 36cd7f016a8de63490dfcbe89e38f6d9e4e4b7a6..9bbe0161a2f45090fe0de085025fc2c91bf60fc8 100644 (file)
@@ -473,7 +473,7 @@ static void read_bulk_callback(struct urb *urb)
                goto goon;
        }
 
-       if (!count || count < 4)
+       if (count < 4)
                goto goon;
 
        rx_status = buf[count - 2];