Skip to content

Commit

Permalink
nvme/core: remove redundant cid
Browse files Browse the repository at this point in the history
Remove cid from initial admin commands, as they are overridden on
submission anyway.

Signed-off-by: Mads Ynddal <[email protected]>
Signed-off-by: Klaus Jensen <[email protected]>
  • Loading branch information
Baekalfen authored and birkelund committed May 8, 2024
1 parent f287a42 commit 179a4d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/nvme/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ int nvme_init(struct nvme_ctrl *ctrl, const char *bdf, const struct nvme_ctrl_op

cmd = (union nvme_cmd) {
.opcode = NVME_ADMIN_SET_FEATURES,
.cid = 0x1,
};

cmd.features.fid = NVME_FEAT_FID_NUM_QUEUES;
Expand All @@ -617,7 +616,6 @@ int nvme_init(struct nvme_ctrl *ctrl, const char *bdf, const struct nvme_ctrl_op

cmd.identify = (struct nvme_cmd_identify) {
.opcode = NVME_ADMIN_IDENTIFY,
.cid = 0x1,
.cns = NVME_IDENTIFY_CNS_CTRL,
};

Expand Down

0 comments on commit 179a4d6

Please sign in to comment.