aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-10-11 05:27:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-11 15:04:25 -0400
commita9325199edb093a5c7311a25d15da20ee984e80b (patch)
treeb99ed92e4a88ac84350abf47ad8d09819cd2c395 /drivers/net/wireless
parentf2a6d6a08cf13f621661dd57f32bf0a5100ba26b (diff)
WIRELESS: at76c50x, remove unneeded NULL check
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/at76c50x-usb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index 91c5f73b5ba3..1476314afa8a 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)
1525 1525
1526 if (priv->device_unplugged) { 1526 if (priv->device_unplugged) {
1527 at76_dbg(DBG_DEVSTART, "device unplugged"); 1527 at76_dbg(DBG_DEVSTART, "device unplugged");
1528 if (urb) 1528 at76_dbg(DBG_DEVSTART, "urb status %d", urb->status);
1529 at76_dbg(DBG_DEVSTART, "urb status %d", urb->status);
1530 return; 1529 return;
1531 } 1530 }
1532 1531