diff options
author | Jackie Liu <liuyun01@kylinos.cn> | 2022-08-12 05:12:31 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-09-19 11:33:54 +0200 |
commit | 6e6fee569d4733f028f306036aaa12669c25b362 (patch) | |
tree | d2cc95d2a75f37f43e6be71a764e18ccbdeeef38 /drivers/nvme/target | |
parent | nvme: move from strlcpy with unused retval to strscpy (diff) | |
download | linux-6e6fee569d4733f028f306036aaa12669c25b362.tar.xz linux-6e6fee569d4733f028f306036aaa12669c25b362.zip |
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 <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>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r-- | drivers/nvme/target/fabrics-cmd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c index f91a56180d3d..c1dfdfb92ebf 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); |