diff options
author | Mike Christie <michael.christie@oracle.com> | 2025-03-13 00:18:02 -0500 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2025-03-20 16:53:55 -0700 |
commit | 7b658153f1b8a79ed98980f2fef7b92a66aeb9cd (patch) | |
tree | 3e7c7c0f5ba8b5f44daae17c1c35ad9398a8e218 | |
parent | 945e82633ecfd54015d2447a9ba05941665db2ee (diff) |
nvmet: Remove duplicate uuid_copy
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>
-rw-r--r-- | drivers/nvme/target/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c index a058f473652c..a2b5319c37f3 100644 --- a/drivers/nvme/target/core.c +++ b/drivers/nvme/target/core.c @@ -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 |