From: xypron.glpk@gmx.de Date: Wed, 18 May 2016 18:40:51 +0000 (+0200) Subject: net: pegasus: simplify logical constraint X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bbf178e0a0a323d896611905718db112b1ab1807;p=deliverable%2Flinux.git net: pegasus: simplify logical constraint If !count is true, count < 4 is also true. Signed-off-by: Heinrich Schuchardt Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 36cd7f016a8d..9bbe0161a2f4 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c @@ -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];