Blame SOURCES/rt-numa-Correct-the-comment-of-numa_initialize.patch

b69aad
From d83bc06e1fca7250dbc3c5e7be0f55a4ea6e7ef0 Mon Sep 17 00:00:00 2001
b69aad
From: Oscar Shiang <oscar0225@livemail.tw>
b69aad
Date: Thu, 23 Dec 2021 22:01:07 +0800
b69aad
Subject: [PATCH 1/2] rt-numa: Correct the comment of numa_initialize()
b69aad
b69aad
numa_initialize() returns 0 only when numa_available() returns -1,
b69aad
which means that libnuma is unavailable.
b69aad
b69aad
The return values in the comment should be corrected to 1 if all
b69aad
functions are available and 0 when the functions are unavailable.
b69aad
b69aad
Signed-off-by: Oscar Shiang <oscar0225@livemail.tw>
b69aad
Signed-off-by: John Kacur <jkacur@redhat.com>
b69aad
b69aad
diff --git a/src/lib/rt-numa.c b/src/lib/rt-numa.c
b69aad
index bb0121a65eca..ee5ab99684d8 100644
b69aad
--- a/src/lib/rt-numa.c
b69aad
+++ b/src/lib/rt-numa.c
b69aad
@@ -15,7 +15,7 @@
b69aad
 
b69aad
 /*
b69aad
  * numa_available() must be called before any other calls to the numa library
b69aad
- * returns 0 if numa is available, or 1 if numa is not available
b69aad
+ * returns 1 if numa is available, or 0 if numa is not available
b69aad
  */
b69aad
 int numa_initialize(void)
b69aad
 {
b69aad
-- 
b69aad
2.27.0
b69aad