Эх сурвалжийг харах

net: pegasus: simplify logical constraint

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>
xypron.glpk@gmx.de 9 жил өмнө
parent
commit
bbf178e0a0

+ 1 - 1
drivers/net/usb/pegasus.c

@@ -473,7 +473,7 @@ static void read_bulk_callback(struct urb *urb)
 		goto goon;
 		goto goon;
 	}
 	}
 
 
-	if (!count || count < 4)
+	if (count < 4)
 		goto goon;
 		goto goon;
 
 
 	rx_status = buf[count - 2];
 	rx_status = buf[count - 2];