diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2016-05-18 20:40:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-23 22:48:45 +0200 |
commit | bbf178e0a0a323d896611905718db112b1ab1807 (patch) | |
tree | 99851e2721f4dae2f0a5afc893f5a0bced49f5b7 /drivers | |
parent | Merge tag 'trace-v4.7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ros... (diff) | |
download | linux-bbf178e0a0a323d896611905718db112b1ab1807.tar.xz linux-bbf178e0a0a323d896611905718db112b1ab1807.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/pegasus.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |