Skip to content

Commit 79febbc

Browse files
arndbJeff Kirsher
authored andcommitted
net: i40e: shut up uninitialized variable warnings
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>
1 parent 5cae761 commit 79febbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/intel/i40e/i40e_txrx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,8 +2313,8 @@ static void i40e_tx_enable_csum(struct sk_buff *skb, u32 *tx_flags,
23132313
struct iphdr *this_ip_hdr;
23142314
u32 network_hdr_len;
23152315
u8 l4_hdr = 0;
2316-
struct udphdr *oudph;
2317-
struct iphdr *oiph;
2316+
struct udphdr *oudph = NULL;
2317+
struct iphdr *oiph = NULL;
23182318
u32 l4_tunnel = 0;
23192319

23202320
if (skb->encapsulation) {

0 commit comments

Comments
 (0)