Skip to content

Commit bc0c529

Browse files
ikegami-tigaw
authored andcommitted
nvme: fix to use NVME_VAL() for CQ entry status field filter
Previously used incorrectly NVME_GET() but not shifted the masked values. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 21e45d8 commit bc0c529

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nvme.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4610,8 +4610,7 @@ static int get_feature_id(struct nvme_dev *dev, struct feat_cfg *cfg,
46104610

46114611
static int filter_out_flags(int status)
46124612
{
4613-
return status & (NVME_GET(NVME_SCT_MASK, SCT) |
4614-
NVME_GET(NVME_SC_MASK, SC));
4613+
return status & (NVME_VAL(SCT) | NVME_VAL(SC));
46154614
}
46164615

46174616
static void get_feature_id_print(struct feat_cfg cfg, int err, __u32 result, void *buf)

0 commit comments

Comments
 (0)