In addition to checking that the policies are equal, also check that the nodes are equal, since the policies may be the same but apply to different nodes. Fixes #170
36 lines
977 B
Diff
36 lines
977 B
Diff
From c09fefddf5474b393f262f92659134355d98c550 Mon Sep 17 00:00:00 2001
|
|
From: Honggyu Kim <honggyu.kp@gmail.com>
|
|
Date: Sat, 24 Dec 2022 03:19:14 +0000
|
|
Subject: [PATCH] numactl.c: Remove unused variable
|
|
|
|
This patch is to remove the following unused variable warning.
|
|
|
|
numactl.c: In function 'main':
|
|
numactl.c:425:14: warning: unused variable 'node' [-Wunused-variable]
|
|
425 | long node=-1;
|
|
| ^~~~
|
|
|
|
Since node is used nowhere inside the function so remove it.
|
|
|
|
Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
|
|
Signed-off-by: buque <wuxu.wu@huawei.com>
|
|
---
|
|
numactl.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/numactl.c b/numactl.c
|
|
index 79b323b..47cbf39 100755
|
|
--- a/numactl.c
|
|
+++ b/numactl.c
|
|
@@ -422,7 +422,6 @@ static struct bitmask *numactl_parse_nodestring(char *s, int flag)
|
|
int main(int ac, char **av)
|
|
{
|
|
int c;
|
|
- long node=-1;
|
|
char *end;
|
|
char shortopts[array_len(opts)*2 + 1];
|
|
struct bitmask *mask = NULL;
|
|
--
|
|
2.33.0
|
|
|