OSDN Git Service

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 36cd7f0..9bbe016 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];