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 21, 2023
1 parent 09b13f7 commit 7eb03c4
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 @@ -6526,7 +6526,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 7eb03c4

Please sign in to comment.