Skip to content

Commit

Permalink
types: Use NVME_SET for status type mask to get status value
Browse files Browse the repository at this point in the history
Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Sep 13, 2023
1 parent 178fde7 commit 354581a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -6516,7 +6516,7 @@ static inline __u32 nvme_status_get_type(int status)
*/
static inline __u32 nvme_status_get_value(int status)
{
return status & ~(NVME_STATUS_TYPE_MASK << NVME_STATUS_TYPE_SHIFT);
return status & ~NVME_SET(NVME_STATUS_TYPE_MASK, STATUS_TYPE);
}

/**
Expand Down

0 comments on commit 354581a

Please sign in to comment.