diff mbox series

[ndctl,1/4,v3] libndctl/msft: Remove NDN_MSFT_SMART_*_VALID defines.

Message ID 20230215164930.707170-1-mav@ixsystems.com (mailing list archive)
State Accepted
Commit 15e60801a4c8cd659b0a3b0c91d12c0c84e4ebf6
Headers show
Series [ndctl,1/4,v3] libndctl/msft: Remove NDN_MSFT_SMART_*_VALID defines. | expand

Commit Message

Alexander Motin Feb. 15, 2023, 4:49 p.m. UTC
smart_get_flags method returns set of globaly defined flags, that
don't need to be redefined for the specific NVDIMM type.

Signed-off-by:	Alexander Motin <mav@ixsystems.com>
---
 ndctl/lib/msft.c | 5 ++---
 ndctl/lib/msft.h | 5 -----
 2 files changed, 2 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/ndctl/lib/msft.c b/ndctl/lib/msft.c
index 3112799..22f72dd 100644
--- a/ndctl/lib/msft.c
+++ b/ndctl/lib/msft.c
@@ -80,9 +80,8 @@  static unsigned int msft_cmd_smart_get_flags(struct ndctl_cmd *cmd)
 	}
 
 	/* below health data can be retrieved via MSFT _DSM function 11 */
-	return NDN_MSFT_SMART_HEALTH_VALID |
-		NDN_MSFT_SMART_TEMP_VALID |
-		NDN_MSFT_SMART_USED_VALID;
+	return ND_SMART_HEALTH_VALID | ND_SMART_TEMP_VALID |
+	    ND_SMART_USED_VALID;
 }
 
 static unsigned int num_set_bit_health(__u16 num)
diff --git a/ndctl/lib/msft.h b/ndctl/lib/msft.h
index 978cc11..c462612 100644
--- a/ndctl/lib/msft.h
+++ b/ndctl/lib/msft.h
@@ -12,11 +12,6 @@  enum {
 	NDN_MSFT_CMD_SMART = 11,
 };
 
-/* NDN_MSFT_CMD_SMART */
-#define NDN_MSFT_SMART_HEALTH_VALID	ND_SMART_HEALTH_VALID
-#define NDN_MSFT_SMART_TEMP_VALID	ND_SMART_TEMP_VALID
-#define NDN_MSFT_SMART_USED_VALID	ND_SMART_USED_VALID
-
 /*
  * This is actually function 11 data,
  * This is the closest I can find to match smart