Commit 7b658153 authored by Mike Christie's avatar Mike Christie Committed by Keith Busch
Browse files

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: default avatarMike Christie <michael.christie@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 945e8263
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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