diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-10-03 06:40:34 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-10-03 20:16:11 +0200 |
commit | 1acff63f6ec2622662e647364293cc3ca495401f (patch) | |
tree | 9b276327b3d3b71a636911c07a7a888aab54c266 /drivers/infiniband | |
parent | target/user: Fix up smatch warnings in tcmu_netlink_event (diff) | |
download | linux-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.c | 2 |
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); |