projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/net/usb/pegasus.c
b/drivers/net/usb/pegasus.c
index 36cd7f016a8de63490dfcbe89e38f6d9e4e4b7a6..9bbe0161a2f45090fe0de085025fc2c91bf60fc8 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];