Skip to content

Commit 3edef73

Browse files
ikegami-tigaw
authored andcommitted
types: Use NVME_SET for status type mask to get status value
Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 8db4b1f commit 3edef73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6630,7 +6630,7 @@ static inline __u32 nvme_status_get_type(int status)
66306630
*/
66316631
static inline __u32 nvme_status_get_value(int status)
66326632
{
6633-
return status & ~(NVME_STATUS_TYPE_MASK << NVME_STATUS_TYPE_SHIFT);
6633+
return status & ~NVME_SET(NVME_STATUS_TYPE_MASK, STATUS_TYPE);
66346634
}
66356635

66366636
/**

0 commit comments

Comments
 (0)