[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1604675200-50217-1-git-send-email-alex.shi@linux.alibaba.com>
Date: Fri, 6 Nov 2020 23:06:40 +0800
From: Alex Shi <alex.shi@...ux.alibaba.com>
To: markus@...rhumer.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] lib/lzo: remove unused variable
the variable 'level' is unused, so remove it to avoid the gcc complain:
lib/decompress_unlzo.c:46:5: warning: variable ‘level’ set but not used
[-Wunused-but-set-variable]
Signed-off-by: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: linux-kernel@...r.kernel.org
---
lib/decompress_unlzo.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c
index 1f439a622076..64c1358500ce 100644
--- a/lib/decompress_unlzo.c
+++ b/lib/decompress_unlzo.c
@@ -43,7 +43,6 @@ STATIC inline long INIT parse_header(u8 *input, long *skip, long in_len)
int l;
u8 *parse = input;
u8 *end = input + in_len;
- u8 level = 0;
u16 version;
/*
@@ -65,7 +64,7 @@ STATIC inline long INIT parse_header(u8 *input, long *skip, long in_len)
version = get_unaligned_be16(parse);
parse += 7;
if (version >= 0x0940)
- level = *parse++;
+ parse++;
if (get_unaligned_be32(parse) & HEADER_HAS_FILTER)
parse += 8; /* flags + filter info */
else
--
1.8.3.1
Powered by blists - more mailing lists