From: Dan Carpenter Date: Mon, 14 May 2012 20:57:29 +0000 (+0300) Subject: brcm80211: remove an unneeded NULL check X-Git-Tag: v3.6-rc1~125^2~57^2~397 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9be02923371718265ea050a5415dc4fefc4e6a64;p=pandora-kernel.git 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 Acked-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed