From d664a6aad2da8e051d210da2e2b851c1e51faab8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 20 Mar 2023 16:05:27 +1030 Subject: [PATCH] libctf: unused variable * ctf-archive.c (arc_mmap_writeout): Delete unused variable. --- libctf/ctf-archive.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c index 54c49b3edbb..a8f76e4f42f 100644 --- a/libctf/ctf-archive.c +++ b/libctf/ctf-archive.c @@ -1249,7 +1249,6 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, const char **errmsg) { ssize_t len; - size_t acc = 0; char *data = (char *) header; ssize_t count = headersz; @@ -1272,7 +1271,6 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, if (len == EINTR) continue; - acc += len; if (len == 0) /* EOF. */ break; -- 2.30.2