diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-02-23 06:36:56 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-03-14 10:43:05 +0300 |
commit | 462b8b2d84975758e5b74fe832bfe8145eef403f (patch) | |
tree | b04560e84417247ac833d5f61de2508c0b3994ba /drivers/nvme/host/tcp.c | |
parent | 8f31dded50d927974a5a696196052ed53f1baf66 (diff) | |
download | linux-462b8b2d84975758e5b74fe832bfe8145eef403f.tar.xz |
nvme-tcp: don't initialize ret variable
No point in initializing ret variable to 0 in nvme_tcp_start_io_queue()
since it gets overwritten by a call to nvme_tcp_start_queue().
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/tcp.c')
-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 6cbcc8b4daaf..bb03ae5ef11f 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -1674,7 +1674,7 @@ static void nvme_tcp_stop_io_queues(struct nvme_ctrl *ctrl) static int nvme_tcp_start_io_queues(struct nvme_ctrl *ctrl) { - int i, ret = 0; + int i, ret; for (i = 1; i < ctrl->queue_count; i++) { ret = nvme_tcp_start_queue(ctrl, i); |