brcm80211: fmac: remove unnecessary NULL pointer check
authorArend van Spriel <arend@broadcom.com>
Fri, 2 Mar 2012 21:55:45 +0000 (22:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Mar 2012 20:53:51 +0000 (15:53 -0500)
commit3bc7e29c984ffda0b6133c2b34233023ff36f370
tree5a15efc11683f1ea5f7222149f8a4806075f2d25
parentebecdcc12fed5d3c81853dea61a0a78a5aefab52
brcm80211: fmac: remove unnecessary NULL pointer check

In brcmf_usb_up() the variable devinfo was checked for being
a NULL pointer, but this can not happen. Also the check was done
after dereferencing the pointer. This patch removes the check.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Kan Yan <kanyan@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/usb.c