linux-pinenote/drivers/net/wireless/brcm80211/brcmsmac
Dan Carpenter 9be0292337 brcm80211: remove an unneeded NULL check
This code causes a static checker warning because "pi" gets dereferenced
before it is checked.  The dereference is inside the write_phy_reg()
function which is called from wlc_phy_write_txmacreg_nphy().

This code is only called from wlc_phy_init_nphy() and "pi" is a
valid pointer so we can remove the check for NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-06-05 15:23:20 -04:00
..
phy brcm80211: remove an unneeded NULL check 2012-06-05 15:23:20 -04:00
aiutils.c brcmsmac: handle non pci in ai_deviceremoved() 2012-05-16 12:45:26 -04:00
aiutils.h brcmsmac: remove nicpci.c 2012-05-16 12:45:25 -04:00
ampdu.c brcm80211: smac: cleanup couple of debug output statements 2012-03-05 15:54:03 -05:00
ampdu.h
antsel.c brcmsmac: use sprom from bcma 2012-05-16 12:45:23 -04:00
antsel.h
brcms_trace_events.c
brcms_trace_events.h
channel.c brcmsmac: use sprom from bcma 2012-05-16 12:45:23 -04:00
channel.h
d11.h wireless: Remove unnecessary ; from while (0) macros 2012-04-11 16:23:56 -04:00
dma.c brcm80211: Use normal DEBUG define 2012-01-24 14:21:13 -05:00
dma.h brcm80211: smac: use bcma function for register access in dma.c 2011-12-13 15:32:56 -05:00
mac80211_if.c brcmsmac: do not access host_pci 2012-05-16 12:45:26 -04:00
mac80211_if.h brcm80211: Use normal DEBUG define 2012-01-24 14:21:13 -05:00
main.c brcmsmac: read PCI vendor and device id only for PCI devices 2012-05-16 12:45:26 -04:00
main.h brcm80211: Convert printk(KERN_DEBUG to pr_debug 2012-01-24 14:21:14 -05:00
Makefile brcmsmac: remove nicpci.c 2012-05-16 12:45:25 -04:00
phy_shim.c brcmsmac: remove brcmsmac own sprom parsing 2012-05-16 12:45:23 -04:00
phy_shim.h brcmsmac: remove brcmsmac own sprom parsing 2012-05-16 12:45:23 -04:00
pmu.c brcm80211: smac: remove ai_switch_core() function 2011-12-13 15:48:23 -05:00
pmu.h brcm80211: smac: remove ai_switch_core() function 2011-12-13 15:48:23 -05:00
pub.h brcmsmac: remove brcmsmac own sprom parsing 2012-05-16 12:45:23 -04:00
rate.c
rate.h brcm80211: smac: remove phy api bypass in rate.h 2011-11-08 15:54:09 -05:00
scb.h
stf.c brcmsmac: use sprom from bcma 2012-05-16 12:45:23 -04:00
stf.h
types.h brcm80211: smac: remove register access macro definitions 2011-12-13 15:48:10 -05:00
ucode_loader.c
ucode_loader.h