diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-10-03 00:40:34 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-10-03 14:16:11 -0400 |
commit | 1acff63f6ec2622662e647364293cc3ca495401f (patch) | |
tree | 9b276327b3d3b71a636911c07a7a888aab54c266 | |
parent | 6e14eab90a933c2e936639be390bf231a377b44a (diff) |
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>
-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) | |||
3152 | 3152 | ||
3153 | accept_wait: | 3153 | accept_wait: |
3154 | ret = down_interruptible(&isert_np->np_sem); | 3154 | ret = down_interruptible(&isert_np->np_sem); |
3155 | if (max_accept > 5) | 3155 | if (ret || max_accept > 5) |
3156 | return -ENODEV; | 3156 | return -ENODEV; |
3157 | 3157 | ||
3158 | spin_lock_bh(&np->np_thread_lock); | 3158 | spin_lock_bh(&np->np_thread_lock); |