aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2017-01-18 14:52:53 +0000
committerDavid S. Miller <[email protected]>2017-01-20 16:45:37 +0000
commitdf384d435a5c034c735df3d9ea87a03172c59b56 (patch)
treef2b91f744f32f734373a30e01bab5cea8b6c5ca7 /drivers/net/xen-netfront.c
parentqed: avoid possible stack overflow in qed_ll2_acquire_connection (diff)
downloadkernel-df384d435a5c034c735df3d9ea87a03172c59b56.tar.gz
kernel-df384d435a5c034c735df3d9ea87a03172c59b56.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions