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>
This commit is contained in:
Sagi Grimberg 2014-10-02 21:40:34 -07:00 committed by Nicholas Bellinger
parent 6e14eab90a
commit 1acff63f6e

View file

@ -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);