From: Petr Holasek <pholasek@redhat.com>
To: Cliff Wickman <cpw@sgi.com>
Cc: linux-numa@vger.kernel.org, Andi Kleen <andi@firstfloor.org>,
	Anton Arapov <anton@redhat.com>, Petr Holasek <pholasek@redhat.com>
Subject: [PATCH v2 6/7] libnuma: removed unused bufferlen variable
Date: Thu, 23 Aug 2012 18:01:58 +0200

Signed-off-by: Petr Holasek <pholasek@redhat.com>
---
 libnuma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libnuma.c b/libnuma.c
index 9c9a1de..a319bcc 100755
--- a/libnuma.c
+++ b/libnuma.c
@@ -1320,7 +1320,7 @@ __asm__(".symver numa_node_to_cpus_v1,numa_node_to_cpus@libnuma_1.1");
 int
 numa_node_to_cpus_v2(int node, struct bitmask *buffer)
 {
-	int err = 0, bufferlen;
+	int err = 0;
 	int nnodes = numa_max_node();
 	char fn[64], *line = NULL;
 	FILE *f; 
@@ -1330,7 +1330,6 @@ numa_node_to_cpus_v2(int node, struct bitmask *buffer)
 	if (!node_cpu_mask_v2)
 		init_node_cpu_mask_v2();
 
-	bufferlen = numa_bitmask_nbytes(buffer);
 	if (node > nnodes) {
 		errno = ERANGE;
 		return -1;
-- 
1.7.11.4

