浏览代码

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>
Sagi Grimberg 11 年之前
父节点
当前提交
1acff63f6e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/infiniband/ulp/isert/ib_isert.c

+ 1 - 1
drivers/infiniband/ulp/isert/ib_isert.c

@@ -3152,7 +3152,7 @@ isert_accept_np(struct iscsi_np *np, struct iscsi_conn *conn)
 
 
 accept_wait:
 accept_wait:
 	ret = down_interruptible(&isert_np->np_sem);
 	ret = down_interruptible(&isert_np->np_sem);
-	if (max_accept > 5)
+	if (ret || max_accept > 5)
 		return -ENODEV;
 		return -ENODEV;
 
 
 	spin_lock_bh(&np->np_thread_lock);
 	spin_lock_bh(&np->np_thread_lock);