]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00276335 net:fec: fix build warning
authorFugang Duan <B38611@freescale.com>
Thu, 22 Aug 2013 09:37:30 +0000 (17:37 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:58 +0000 (09:54 +0800)
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 <B38611@freescale.com>
drivers/net/ethernet/freescale/fec_main.c

index ffba46acb2ad68b8d2d18fcaed6c38b310fba203..598d9ec8eea6e6199347a4fdb9a84c96af852837 100644 (file)
@@ -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();