]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
Fix status code mask
authorKeith Busch <kbusch@kernel.org>
Mon, 17 Feb 2020 21:01:07 +0000 (13:01 -0800)
committerKeith Busch <kbusch@kernel.org>
Mon, 17 Feb 2020 21:06:18 +0000 (13:06 -0800)
Signed-off-by: Keith Busch <kbusch@kernel.org>
src/nvme/types.h

index 98eda6588630df5f661ebf0d1e9500305af2e402..2ff2812059fd5fe519c7146cd5e6fb1cdbc819f9 100644 (file)
@@ -3893,7 +3893,7 @@ static inline __u16 nvme_status_code_type(__u16 status_field)
  */
 static inline __u16 nvme_status_code(__u16 status_field)
 {
-       return status_field & NVME_SCT_MASK;
+       return status_field & NVME_SC_MASK;
 }
 
 #define NVME_MAJOR(ver)                ((ver) >> 16)