summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-10-02 21:40:34 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2014-10-03 11:16:11 -0700
commit1acff63f6ec2622662e647364293cc3ca495401f (patch)
tree9b276327b3d3b71a636911c07a7a888aab54c266 /drivers/infiniband/ulp
parent6e14eab90a933c2e936639be390bf231a377b44a (diff)
downloadlinux-1acff63f6ec2622662e647364293cc3ca495401f.tar.gz
linux-1acff63f6ec2622662e647364293cc3ca495401f.tar.bz2
linux-1acff63f6ec2622662e647364293cc3ca495401f.zip
iser-target: Fix smatch warning
Unused return value from down_interruptible Reported-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index d4c7928a0f36..40969b683fdd 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -3152,7 +3152,7 @@ isert_accept_np(struct iscsi_np *np, struct iscsi_conn *conn)
accept_wait:
ret = down_interruptible(&isert_np->np_sem);
- if (max_accept > 5)
+ if (ret || max_accept > 5)
return -ENODEV;
spin_lock_bh(&np->np_thread_lock);