cxgb4i : Fix -Wmaybe-uninitialized warning.
authorAnish Bhatt <anish@chelsio.com>
Wed, 15 Oct 2014 07:26:47 +0000 (00:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Oct 2014 16:13:27 +0000 (12:13 -0400)
Identified by kbuild test robot. csk family is always set to be AF_INET or
AF_INET6, so skb will always be initialized to some value but there is no harm
in silencing the warning anyways.

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Fixes : f42bb57c61fd ('cxgb4i : Fix -Wunused-function warning')
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c

index 8c3003b6d59146d838264d9b5fbe464435118c01..3e0a0d315f72acc6b7088ded6d27465ff14b2840 100644 (file)
@@ -758,7 +758,7 @@ static int act_open_rpl_status_to_errno(int status)
 
 static void csk_act_open_retry_timer(unsigned long data)
 {
-       struct sk_buff *skb;
+       struct sk_buff *skb = NULL;
        struct cxgbi_sock *csk = (struct cxgbi_sock *)data;
        struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev);
        void (*send_act_open_func)(struct cxgbi_sock *, struct sk_buff *,