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:
f2a6d6a
)
WIRELESS: at76c50x, remove unneeded NULL check
author
Jiri Slaby
<jslaby@suse.cz>
Mon, 11 Oct 2010 09:27:32 +0000
(11:27 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 11 Oct 2010 19:04:25 +0000
(15:04 -0400)
Stanse found that urb cannot be NULL in at76_rx_tasklet because it is
dereferenced earlier, so remove the unneeded check.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/at76c50x-usb.c
b/drivers/net/wireless/at76c50x-usb.c
index 91c5f73b5ba33d5d21e98aa138806224d65eadd1..1476314afa8a5dfb2811d4805d36c3eef2602d5b 100644
(file)
--- a/
drivers/net/wireless/at76c50x-usb.c
+++ b/
drivers/net/wireless/at76c50x-usb.c
@@
-1525,8
+1525,7
@@
static void at76_rx_tasklet(unsigned long param)
if (priv->device_unplugged) {
at76_dbg(DBG_DEVSTART, "device unplugged");
- if (urb)
- at76_dbg(DBG_DEVSTART, "urb status %d", urb->status);
+ at76_dbg(DBG_DEVSTART, "urb status %d", urb->status);
return;
}