From: Jiri Slaby Date: Mon, 11 Oct 2010 09:27:32 +0000 (+0200) Subject: WIRELESS: at76c50x, remove unneeded NULL check X-Git-Tag: MMI-PSA29.97-13-9~21994^2~78^2^2~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9325199edb093a5c7311a25d15da20ee984e80b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: John W. Linville --- 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) 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; }