summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-10-03 06:40:34 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2014-10-03 20:16:11 +0200
commit1acff63f6ec2622662e647364293cc3ca495401f (patch)
tree9b276327b3d3b71a636911c07a7a888aab54c266 /drivers/infiniband
parenttarget/user: Fix up smatch warnings in tcmu_netlink_event (diff)
downloadlinux-1acff63f6ec2622662e647364293cc3ca495401f.tar.xz
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')
-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);