linux/drivers/net/ethernet/broadcom
Arnd Bergmann df384d435a bcm63xx_enet: avoid uninitialized variable warning
gcc-7 and probably earlier versions get confused by this function
and print a harmless warning:

drivers/net/ethernet/broadcom/bcm63xx_enet.c: In function 'bcm_enet_open':
drivers/net/ethernet/broadcom/bcm63xx_enet.c:1130:3: error: 'phydev' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This adds an initialization for the 'phydev' variable when it is unused
and changes the check to test for that NULL pointer to make it clear
that we always pass a valid pointer here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-20 11:45:37 -05:00
..
bnx2x clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
bnxt bnxt_en: Fix "uninitialized variable" bug in TPA code path. 2017-01-18 17:01:47 -05:00
genet Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-12-03 12:29:53 -05:00
b44.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
b44.h net: ethernet: broadcom: b44: use phydev from struct net_device 2016-09-19 21:39:11 -04:00
bcm63xx_enet.c bcm63xx_enet: avoid uninitialized variable warning 2017-01-20 11:45:37 -05:00
bcm63xx_enet.h net: ethernet: broadcom: bcm63xx: use phydev from struct net_device 2016-09-19 21:39:12 -04:00
bcmsysport.c net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim 2017-01-13 12:19:07 -05:00
bcmsysport.h
bgmac-bcma-mdio.c
bgmac-bcma.c net: ethernet: bgmac: device tree phy enablement 2016-11-07 13:11:22 -05:00
bgmac-platform.c net: ethernet: bgmac: add NS2 support 2016-11-07 13:11:22 -05:00
bgmac.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-11-15 10:54:36 -05:00
bgmac.h net: ethernet: bgmac: add NS2 support 2016-11-07 13:11:22 -05:00
bnx2.c bnx2: use READ_ONCE() instead of barrier() 2016-11-21 11:32:34 -05:00
bnx2.h ethernet/broadcom: use core min/max MTU checking 2016-10-18 11:34:18 -04:00
bnx2_fw.h
cnic.c
cnic.h
cnic_defs.h
cnic_if.h
Kconfig Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-12-12 19:56:15 -08:00
Makefile
sb1250-mac.c ethernet: fix min/max MTU typos 2016-10-27 16:18:50 -04:00
tg3.c tg3: Fix race condition in tg3_get_stats64(). 2017-01-07 21:35:04 -05:00
tg3.h