diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2016-05-18 18:40:51 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-23 20:48:45 (GMT) |
commit | bbf178e0a0a323d896611905718db112b1ab1807 (patch) | |
tree | 99851e2721f4dae2f0a5afc893f5a0bced49f5b7 /drivers/net/usb | |
parent | 7639dad93a5564579987abded4ec05e3db13659d (diff) | |
download | linux-bbf178e0a0a323d896611905718db112b1ab1807.tar.xz |
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/net/usb')
-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 36cd7f0..9bbe0161 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]; |