[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1377165637-8116-1-git-send-email-B38611@freescale.com>
Date: Thu, 22 Aug 2013 18:00:37 +0800
From: Fugang Duan <B38611@...escale.com>
To: <b20596@...escale.com>, <b45643@...escale.com>,
<davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <shawn.guo@...aro.org>,
<bhutchings@...arflare.com>, <R49496@...escale.com>,
<stephen@...workplumber.org>
Subject: [PATCH] net: fec: fix build warning of used uninitialized variable
drivers/net/ethernet/freescale/fec_main.c:838
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 <B38611@...escale.com>
---
drivers/net/ethernet/freescale/fec_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 77ea0db..4ea1555 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -835,7 +835,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();
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists