From: Dan Carpenter Date: Thu, 5 May 2016 13:21:30 +0000 (+0300) Subject: qede: uninitialized variable in qede_start_xmit() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=810810ffb2f6d46365d0790bbe77698a5534393a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git qede: uninitialized variable in qede_start_xmit() "data_split" was never set to false. It's just uninitialized. Fixes: 2950219d87b0 ('qede: Add basic network device support') Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index 8d5248c4087f..12f6615797de 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -421,7 +421,7 @@ netdev_tx_t qede_start_xmit(struct sk_buff *skb, u8 xmit_type; u16 idx; u16 hlen; - bool data_split; + bool data_split = false; /* Get tx-queue context and netdev index */ txq_index = skb_get_queue_mapping(skb);