scsi: cxgb4i: Remove superfluous null check
authorXu Wang <vulab@iscas.ac.cn>
Thu, 2 Apr 2020 11:08:32 +0000 (19:08 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Apr 2020 16:38:44 +0000 (12:38 -0400)
In do_abort_rpl_rss, the null check of 'clk' is not needed.

Link: https://lore.kernel.org/r/20200402110832.12712-1-vulab@iscas.ac.cn
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c

index bc1086ae68352754a9d4bce0c54b0dec36243d61..8ce8592f6a6492138b56a5089a6d55be88f730f7 100644 (file)
@@ -1127,10 +1127,9 @@ static void do_abort_rpl_rss(struct cxgbi_device *cdev, struct sk_buff *skb)
        if (!csk)
                goto rel_skb;
 
-       if (csk)
-               pr_info_ipaddr("csk 0x%p,%u,0x%lx,%u, status %u.\n",
-                              (&csk->saddr), (&csk->daddr), csk,
-                              csk->state, csk->flags, csk->tid, rpl->status);
+       pr_info_ipaddr("csk 0x%p,%u,0x%lx,%u, status %u.\n",
+                      (&csk->saddr), (&csk->daddr), csk,
+                      csk->state, csk->flags, csk->tid, rpl->status);
 
        if (rpl->status == CPL_ERR_ABORT_FAILED)
                goto rel_skb;