From: Mike Christie Date: Thu, 13 Mar 2025 05:18:02 +0000 (-0500) Subject: nvmet: Remove duplicate uuid_copy X-Git-Tag: v6.15-rc1~166^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b658153f1b8a79ed98980f2fef7b92a66aeb9cd;p=thirdparty%2Flinux.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 a058f473652cd..a2b5319c37f35 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