Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 312910f4 authored by Colin Ian King's avatar Colin Ian King Committed by Sagi Grimberg
Browse files

nvme: tcp: remove redundant assignment to variable ret



The variable ret is being initialized with a value that is never read
and is being re-assigned immediately afterwards. The assignment is
redundant and hence can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent 03894b7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1824,7 +1824,7 @@ static void nvme_tcp_reconnect_or_remove(struct nvme_ctrl *ctrl)
static int nvme_tcp_setup_ctrl(struct nvme_ctrl *ctrl, bool new)
{
	struct nvmf_ctrl_options *opts = ctrl->opts;
	int ret = -EINVAL;
	int ret;

	ret = nvme_tcp_configure_admin_queue(ctrl, new);
	if (ret)