diff --git a/src/nvme/types.h b/src/nvme/types.h index 5cb269ea..713977ec 100644 --- a/src/nvme/types.h +++ b/src/nvme/types.h @@ -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); } /**