]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nvmet: Remove duplicate uuid_copy
authorMike Christie <michael.christie@oracle.com>
Thu, 13 Mar 2025 05:18:02 +0000 (00:18 -0500)
committerKeith Busch <kbusch@kernel.org>
Thu, 20 Mar 2025 23:53:55 +0000 (16:53 -0700)
We do uuid_copy twice in nvmet_alloc_ctrl so this patch deletes one
of the calls.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/core.c

index a058f473652cd036b07c57851a3ca2fdedba51fa..a2b5319c37f350533530e8428f23498155b2fec0 100644 (file)
@@ -1620,8 +1620,6 @@ struct nvmet_ctrl *nvmet_alloc_ctrl(struct nvmet_alloc_ctrl_args *args)
        }
        ctrl->cntlid = ret;
 
-       uuid_copy(&ctrl->hostid, args->hostid);
-
        /*
         * Discovery controllers may use some arbitrary high value
         * in order to cleanup stale discovery sessions