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

Commit 39bbee4e authored by Colin Ian King's avatar Colin Ian King Committed by Sagi Grimberg
Browse files

nvme-rdma: initialize ret to zero to avoid returning garbage



ret is not initialized so it contains garbage.  Ensure garbage
is not returned by initializing rc to 0.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent e3266378
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1319,7 +1319,7 @@ static int nvme_rdma_route_resolved(struct nvme_rdma_queue *queue)
static int nvme_rdma_device_unplug(struct nvme_rdma_queue *queue)
{
	struct nvme_rdma_ctrl *ctrl = queue->ctrl;
	int ret;
	int ret = 0;

	/* Own the controller deletion */
	if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_DELETING))