iser-target: Fix smatch warning
authorSagi Grimberg <sagig@mellanox.com>
Fri, 3 Oct 2014 04:40:34 +0000 (21:40 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 3 Oct 2014 18:16:11 +0000 (11:16 -0700)
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>
drivers/infiniband/ulp/isert/ib_isert.c

index d4c7928a0f36143844f3ca0b4735f9c22a1c148a..40969b683fdd60637b98e711ff79c1f544b3dbf2 100644 (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);