projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
945e826
)
nvmet: Remove duplicate uuid_copy
author
Mike Christie
<michael.christie@oracle.com>
Thu, 13 Mar 2025 05:18:02 +0000
(
00:18
-0500)
committer
Keith Busch
<kbusch@kernel.org>
Thu, 20 Mar 2025 23:53:55 +0000
(16:53 -0700)
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>
drivers/nvme/target/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/target/core.c
b/drivers/nvme/target/core.c
index a058f473652cd036b07c57851a3ca2fdedba51fa..a2b5319c37f350533530e8428f23498155b2fec0 100644
(file)
--- 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