From 3edef735058964d509493008f99b87be7a30d7bb Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Sat, 17 Jun 2023 10:56:26 +0900 Subject: [PATCH] types: Use NVME_SET for status type mask to get status value Signed-off-by: Tokunori Ikegami --- src/nvme/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvme/types.h b/src/nvme/types.h index 96c6a6df..ac6d7816 100644 --- a/src/nvme/types.h +++ b/src/nvme/types.h @@ -6630,7 +6630,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); } /**