Skip to content

Commit 462b8b2

Browse files
Chaitanya KulkarniChristoph Hellwig
authored andcommitted
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>
1 parent 8f31dde commit 462b8b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvme/host/tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ static void nvme_tcp_stop_io_queues(struct nvme_ctrl *ctrl)
16741674

16751675
static int nvme_tcp_start_io_queues(struct nvme_ctrl *ctrl)
16761676
{
1677-
int i, ret = 0;
1677+
int i, ret;
16781678

16791679
for (i = 1; i < ctrl->queue_count; i++) {
16801680
ret = nvme_tcp_start_queue(ctrl, i);

0 commit comments

Comments
 (0)