diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-09-05 15:34:35 +0100 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2019-09-12 08:50:46 -0700 |
commit | 312910f4d2fed987d1f4a6cd75e86c926e9ad557 (patch) | |
tree | f32e48f91ea11b826c844d019a301a6bf5869c71 /drivers/nvme | |
parent | 03894b7a896dc6eb3870e197bd7414ab0c947cbf (diff) | |
download | linux-312910f4d2fed987d1f4a6cd75e86c926e9ad557.tar.gz linux-312910f4d2fed987d1f4a6cd75e86c926e9ad557.tar.bz2 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')
-rw-r--r-- | drivers/nvme/host/tcp.c | 2 |
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) |