* [PATCH 1/1] WIRELESS: at76c50x, remove unneeded NULL check
@ 2010-10-11 9:27 Jiri Slaby
0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2010-10-11 9:27 UTC (permalink / raw)
To: linville; +Cc: johannes.berg, linux-wireless, linux-kernel, jirislaby
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>
---
drivers/net/wireless/at76c50x-usb.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index 91c5f73..1476314 100644
--- 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;
}
--
1.7.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-11 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-11 9:27 [PATCH 1/1] WIRELESS: at76c50x, remove unneeded NULL check Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®