From: Sagi Grimberg Date: Fri, 3 Oct 2014 04:40:34 +0000 (-0700) Subject: iser-target: Fix smatch warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1acff63f6ec2622662e647364293cc3ca495401f;p=openwrt%2Fstaging%2Fblogic.git iser-target: Fix smatch warning Unused return value from down_interruptible Reported-by: Or Gerlitz Signed-off-by: Sagi Grimberg Signed-off-by: Nicholas Bellinger --- 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);