projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7639dad
)
net: pegasus: simplify logical constraint
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Wed, 18 May 2016 18:40:51 +0000
(20:40 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/usb/pegasus.c
b/drivers/net/usb/pegasus.c
index
36cd7f0
..
9bbe016
100644
(file)
--- 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];