Re: [PATCH] nvmet: pass back cntlid on successful completion
From: Sagi Grimberg <sagi@grimberg.me>
Date: 2021-08-06 19:35:21
From: Sagi Grimberg <sagi@grimberg.me>
Date: 2021-08-06 19:35:21
status = nvmet_install_queue(ctrl, req);
- if (status) {
- /* pass back cntlid that had the issue of installing queue */
- req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid);
+No need for this newline
+ if (status)
goto out_ctrl_put;
- }
+
+ /* pass back cntlid for successful completion */
+ req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid);
pr_debug("adding queue %d to ctrl %d.\n", qid, ctrl->cntlid);
_______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme