Skip to content

Commit

Permalink
core/misc: remove redundant cid
Browse files Browse the repository at this point in the history
Remove cid from initial admin commands, as they are overriden on
submission anyway.
  • Loading branch information
Baekalfen committed May 3, 2024
1 parent b167416 commit 1632276
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 @@ -618,7 +618,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 Down Expand Up @@ -647,7 +646,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 1632276

Please sign in to comment.