From: Roland Vossen Date: Mon, 8 Aug 2011 13:58:25 +0000 (+0200) Subject: staging: brcm80211: removed global variable from sdio fullmac X-Git-Tag: v3.2-rc1~169^2^2~864^2~343 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fda276eb1707ec9cef3d00c293d7cb488af7ca6;p=pandora-kernel.git staging: brcm80211: removed global variable from sdio fullmac Code cleanup. bus->card is assigned in brcmf_sdbrcm_probe (before brcmf_sdbrcm_probe_attach()). Since w_sdreg32() and r_sdreg32() are called only after that assignment, they can safely use bus->card. Thus there is no instance left where brcmf_sdcard_reg_read() or brcmf_sdcard_reg_write() is called with a NULL parameter, so the mechanism in bcmsdh.c that deals with a NULL pointer could be deleted. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky (Zhenhui) Lin Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed