From: Jackie Liu Date: Fri, 12 Aug 2022 03:12:31 +0000 (+0800) Subject: nvme-auth: remove the redundant req->cqe->result.u16 assignment operation X-Git-Tag: v6.6.17~6468^2~60^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e6fee569d4733f028f306036aaa12669c25b362;p=platform%2Fkernel%2Flinux-rpi.git nvme-auth: remove the redundant req->cqe->result.u16 assignment operation req->cqe->result.u16 has already been assigned in the previous line, no need to do it again. Signed-off-by: Jackie Liu Reviewed-by: Sagi Grimberg Reviewed-by: Chaitanya Kulkarni Reviewed-by: Hannes Reinecke Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c index f91a561..c1dfdfb 100644 --- a/drivers/nvme/target/fabrics-cmd.c +++ b/drivers/nvme/target/fabrics-cmd.c @@ -332,7 +332,6 @@ static void nvmet_execute_io_connect(struct nvmet_req *req) req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid); pr_debug("adding queue %d to ctrl %d.\n", qid, ctrl->cntlid); - req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid); if (nvmet_has_auth(ctrl)) nvmet_init_auth(ctrl, req);