summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-02 01:27:57 +0300
committerDavid S. Miller <davem@davemloft.net>2016-01-06 08:00:11 +0300
commitbe78a690f50f38882220ceecda403478d477122e (patch)
treeae8dc8eb20a4dc94624ee2f428e58951e5d2bb07 /drivers/net/wireless/intel/iwlwifi/mvm/Makefile
parenta72a5e2d34ec2921c0d9a7545093087e4cb90d0a (diff)
downloadlinux-be78a690f50f38882220ceecda403478d477122e.tar.xz
net: hns: avoid uninitialized variable warning:
gcc fails to see that the use of the 'last_offset' variable in hns_nic_reuse_page() is used correctly and issues a bogus warning: drivers/net/ethernet/hisilicon/hns/hns_enet.c: In function 'hns_nic_reuse_page': drivers/net/ethernet/hisilicon/hns/hns_enet.c:541:6: warning: 'last_offset' may be used uninitialized in this function [-Wmaybe-uninitialized] This simplifies the function to make it more obvious what is going on to both readers and compilers, which makes the warning go away. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/Makefile')
0 files changed, 0 insertions, 0 deletions