From: Fugang Duan Date: Thu, 22 Aug 2013 09:37:30 +0000 (+0800) Subject: ENGR00276335 net:fec: fix build warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dac5f1fd7e04e84fc1203fd42fb3de9344f236c7;p=karo-tx-linux.git ENGR00276335 net:fec: fix build warning drivers/net/ethernet/freescale/fec_main.c:864 warning: 'vlan_tag' may be used uninitialized in this function note: 'vlan_tag' was declared here Compiler with the warning option: -Wuninitialized, the warning will be reported. Signed-off-by: Fugang Duan --- diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index ffba46acb2ad..598d9ec8eea6 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -861,7 +861,7 @@ fec_enet_rx(struct net_device *ndev, int budget) int pkt_received = 0; struct bufdesc_ex *ebdp = NULL; bool vlan_packet_rcvd = false; - u16 vlan_tag; + u16 vlan_tag = 0; #ifdef CONFIG_M532x flush_cache_all();