From dac5f1fd7e04e84fc1203fd42fb3de9344f236c7 Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Thu, 22 Aug 2013 17:37:30 +0800 Subject: [PATCH] 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 --- drivers/net/ethernet/freescale/fec_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5