summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-09-05 15:34:35 +0100
committerSagi Grimberg <sagi@grimberg.me>2019-09-12 08:50:46 -0700
commit312910f4d2fed987d1f4a6cd75e86c926e9ad557 (patch)
treef32e48f91ea11b826c844d019a301a6bf5869c71 /drivers/nvme/host
parent03894b7a896dc6eb3870e197bd7414ab0c947cbf (diff)
downloadtalos-op-linux-312910f4d2fed987d1f4a6cd75e86c926e9ad557.tar.gz
talos-op-linux-312910f4d2fed987d1f4a6cd75e86c926e9ad557.zip
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: Colin Ian King <colin.king@canonical.com> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r--drivers/nvme/host/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 0a0263a364f2..4ffd5957637a 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -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)
OpenPOWER on IntegriCloud