rtlwifi: rtl8723be: Fix smatch warnings
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 5 Mar 2014 23:26:01 +0000 (17:26 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Mar 2014 19:29:57 +0000 (14:29 -0500)
commit7ce24ab74c04ce0ce238b5dce30e9bc3823527be
treea3f689752418bb585172cf859362068061e05829
parent2903d04b5abe10393f659c5a0a4f8adec1b67b65
rtlwifi: rtl8723be: Fix smatch warnings

Smatch reports the following:

drivers/net/wireless/rtlwifi/rtl8723be/fw.c:208 _rtl8723be_fill_h2c_command() warn: variable dereferenced before check 'rtlhal' (see line 69)
drivers/net/wireless/rtlwifi/rtl8723be/hw.c:1732 _rtl8723be_read_adapter_info() error: __builtin_memcpy() '&rtlefuse->efuse_map[0][0]' too small (256 vs 512)

The first one is fixed by removing two pointless tests for NULL pointers.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8723be/fw.c
drivers/net/wireless/rtlwifi/wifi.h