From a66b14a0e6a7edc4a9877dcd2298eb57402b4c38 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 a1101c98..ea03eb90 100644 --- a/src/nvme/types.h +++ b/src/nvme/types.h @@ -6508,7 +6508,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); } /**