summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-04-02 19:08:32 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-04-24 12:38:44 -0400
commitf8e25f97407c2bcfaf54704938a5e5120e190002 (patch)
tree9130e5bcace947f2d92d23c49da2281fd96765e9 /drivers/scsi/cxgbi
parentcbb01c2f2f630f1497f703c51ff21538ae2d86b8 (diff)
downloadlinux-stable-f8e25f97407c2bcfaf54704938a5e5120e190002.tar.gz
linux-stable-f8e25f97407c2bcfaf54704938a5e5120e190002.tar.bz2
linux-stable-f8e25f97407c2bcfaf54704938a5e5120e190002.zip
scsi: cxgb4i: Remove superfluous null check
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>
Diffstat (limited to 'drivers/scsi/cxgbi')
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index bc1086ae6835..8ce8592f6a64 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -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;