From: Mike Christie Date: Thu, 13 Mar 2025 05:18:02 +0000 (-0500) Subject: nvmet: Remove duplicate uuid_copy X-Git-Tag: for-6.15/block-20250322^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7b658153f1b8a79ed98980f2fef7b92a66aeb9cd;p=linux-block.git 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 Reviewed-by: Christoph Hellwig Signed-off-by: Keith Busch --- 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