Skip to content

Commit 7b65815

Browse files
mikechristiekeithbusch
authored andcommitted
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 945e826 commit 7b65815

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/nvme/target/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,8 +1620,6 @@ struct nvmet_ctrl *nvmet_alloc_ctrl(struct nvmet_alloc_ctrl_args *args)
16201620
}
16211621
ctrl->cntlid = ret;
16221622

1623-
uuid_copy(&ctrl->hostid, args->hostid);
1624-
16251623
/*
16261624
* Discovery controllers may use some arbitrary high value
16271625
* in order to cleanup stale discovery sessions

0 commit comments

Comments
 (0)