]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: Using zero instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Oct 2012 18:13:07 +0000 (11:13 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Oct 2012 20:17:40 +0000 (16:17 -0400)
commit78bf99b8ceaefc1be5348e9fc41c341ded9bcac1
treee8fd2305795c51fdc8c8c2d86706842e899a8f3d
parentd0c6a2cb13f07e124d5d09f212fb1e105a8f1da1
brcmfmac: Using zero instead of NULL

Sparse complains that we use zero instead of NULL here.  In fact, the
initialization is wrong and should be removed.  Doing these kinds of
bogus initializations means that GCC can't detect unitialized variables
and leads to bugs.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c