Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1337045pxb; Fri, 6 Nov 2020 07:11:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvPjwKnDhfBiY6iMaQ+SQnHqRqacLU6zvsQDGHyANdiC1sHBczAEyKRpA6mDReKkDTD15F X-Received: by 2002:aa7:c7d9:: with SMTP id o25mr2574340eds.318.1604675518500; Fri, 06 Nov 2020 07:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604675518; cv=none; d=google.com; s=arc-20160816; b=oi+GHj/AiB2qb/cJ+BIiZ9ckIendTqsF7an0VlUhKL3AGlW2GNGj7tLHHUke4V5Lf3 2ihEKhjjv0zVf5UHeX7Ibw7AoqDoI2/YoRgYdzRs7JxhaD6STL9UrxQwcgSDL95lXfYC HKny0F7SzMxkPuqX0gFQATmUyyun/jG1YI575mDqbp/nCTVJ8/nNisNW0EqEa0lSkDTL sVXh8VGj47cUkFNo/8KcCc4vyGGooA76E0208q7/YwqEkg+UvsAoMnUK04sH2MGbopX7 svpjCOMHpfVGxUbMdqB2ij2OmSltEUnYAfQXSV2kPulqRt42vYPgeiRDsaFPY/KSPyag A5Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CKBV06PMD8Uuy8wIYYRzIPDCec6nnHbxbFoRT6/M/g4=; b=p2/WUnj55Z0w2ygHPRzcLx9EevZ//WK3pz9aVE0tSWnYas+6wZhJz05BnF1ma820T1 839CB/488vIMgrU1ud5H43CWiGFgEVf6/+Gw7dZlFUxwtzvh0CeHdZi3qZddnM/sZolZ krgHNr+0Vc/haZRdaO78yyJSqL7gx/hPox61COnp1j1XqrrhpdYkaLry09/cR7smLm9O exX+P27sCY4VlPgByHqazUAr3ES1PbwyqNaQQ8yVHvESk79x6N4ll0QjlfdyBPtRyvYg IsFKWdyaLbF0zBURRtkN2V4mGO58bF2xD2oaQZTmJU4qChbrIbBbFZR0/Uq7UUYBakrv RDxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov14si996338ejb.245.2020.11.06.07.11.33; Fri, 06 Nov 2020 07:11:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727505AbgKFPGt (ORCPT + 99 others); Fri, 6 Nov 2020 10:06:49 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:54027 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbgKFPGt (ORCPT ); Fri, 6 Nov 2020 10:06:49 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R531e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=2;SR=0;TI=SMTPD_---0UERSrmw_1604675202; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UERSrmw_1604675202) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Nov 2020 23:06:42 +0800 From: Alex Shi To: markus@oberhumer.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] lib/lzo: remove unused variable Date: Fri, 6 Nov 2020 23:06:40 +0800 Message-Id: <1604675200-50217-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: linux-kernel@vger.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