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

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