linux/drivers/net/ethernet/hisilicon
Arnd Bergmann be78a690f5 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>
2016-01-06 00:00:11 -05:00
..
hns net: hns: avoid uninitialized variable warning: 2016-01-06 00:00:11 -05:00
hip04_eth.c net: hisilicon: fix handling platform_get_irq result 2015-09-26 22:46:45 -07:00
hix5hd2_gmac.c net: hix5hd2_gmac: avoid integer overload warning 2015-10-18 20:01:08 -07:00
hns_mdio.c net: hisilicon: deals with the sub ctrl by syscon 2015-10-22 07:19:36 -07:00
Kconfig net: hisilicon: NET_VENDOR_HISILICON should depend on HAS_DMA 2015-11-09 11:19:29 -05:00
Makefile net: add Hisilicon Network Subsystem hnae framework support 2015-09-20 21:42:57 -07:00