Skip to content

Commit 4ee204b

Browse files
ikegami-tigaw
authored andcommitted
nvme: delete host identifier feature length checking
Since already checked in nvme_get_feature_length() calling. Deleted before by the commit: 18de3a6 but then incorrectly added. Fixes: b156790 ("nvme: split get_feature to get multiple feature ids") Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 4a9e16d commit 4ee204b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

nvme.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4707,10 +4707,6 @@ static int get_feature_id(struct nvme_dev *dev, struct feat_cfg *cfg,
47074707
nvme_get_feature_length(cfg->feature_id, cfg->cdw11,
47084708
&cfg->data_len);
47094709

4710-
/* check for Extended Host Identifier */
4711-
if (cfg->feature_id == NVME_FEAT_FID_HOST_ID && (cfg->cdw11 & 0x1))
4712-
cfg->data_len = 16;
4713-
47144710
if (cfg->feature_id == NVME_FEAT_FID_FDP_EVENTS) {
47154711
cfg->data_len = 0xff * sizeof(__u16);
47164712
cfg->cdw11 |= 0xff << 16;

0 commit comments

Comments
 (0)