提交 1acff63f 编写于 作者: S Sagi Grimberg 提交者: Nicholas Bellinger

iser-target: Fix smatch warning

Unused return value from down_interruptible
Reported-by: NOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: NSagi Grimberg <sagig@mellanox.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 6e14eab9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册