]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvme-auth: remove the redundant req->cqe->result.u16 assignment operation
authorJackie Liu <liuyun01@kylinos.cn>
Fri, 12 Aug 2022 03:12:31 +0000 (11:12 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2022 09:33:54 +0000 (11:33 +0200)
req->cqe->result.u16 has already been assigned in the previous line, no
need to do it again.

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fabrics-cmd.c

index f91a56180d3dd68fd7986c938f03aab5724298b0..c1dfdfb92ebf06f9edbdf8fe67e78449e73a2b7f 100644 (file)
@@ -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);