]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
net: i40e: shut up uninitialized variable warnings
authorArnd Bergmann <arnd@arndb.de>
Thu, 21 Jan 2016 03:53:17 +0000 (19:53 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 16:00:10 +0000 (09:00 -0700)
intel/i40e/i40e_txrx.c: In function 'i40e_xmit_frame_ring':
intel/i40e/i40e_txrx.c:2367:20: error: 'oiph' may be used uninitialized in this function [-Werror=maybe-uninitialized]
intel/i40e/i40e_txrx.c:2317:16: note: 'oiph' was declared here
intel/i40e/i40e_txrx.c:2367:17: error: 'oudph' may be used uninitialized in this function [-Werror=maybe-uninitialized]
intel/i40e/i40e_txrx.c:2316:17: note: 'oudph' was declared here

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 79febbc19b81b5242339bffb90e4dbea15015dde)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c

index a431ddb71000c1b20205aaeede83c9c77bc7e0b4..f5b09f4a1cdae3dd541a1dfaf4a142eeb8766726 100644 (file)
@@ -2314,8 +2314,8 @@ static void i40e_tx_enable_csum(struct sk_buff *skb, u32 *tx_flags,
        struct iphdr *this_ip_hdr;
        u32 network_hdr_len;
        u8 l4_hdr = 0;
-       struct udphdr *oudph;
-       struct iphdr *oiph;
+       struct udphdr *oudph = NULL;
+       struct iphdr *oiph = NULL;
        u32 l4_tunnel = 0;
 
        if (skb->encapsulation) {