Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp97081pxf; Tue, 30 Mar 2021 20:51:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4kQExvNdQL1ZgP+SQ1ZOWlA2DBCIWuSowQdRfr2EKcFpVbXCrmrJv+KzM30fNqRA7MPs2 X-Received: by 2002:a17:907:aa2:: with SMTP id bz2mr1366002ejc.239.1617162672343; Tue, 30 Mar 2021 20:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617162672; cv=none; d=google.com; s=arc-20160816; b=t9ds6Yfb5dyBSuEXef9mKMORF3PO7LbjLjJ1AKbf9znrb6o2Ql9POiNJszJXw0fiWa +VKWI3GLKl4koV1q8UOT+PXm1MuuF8aBgO6WY3vUmPe1b6OmZUeR+gMbkWD2r1cw4erU boTVx2nm0YEBogHPIRsthgJ50Eb9tP60o3eCTYM47RzB5cO6DPKTpyIrRPQgz06pOt1b DkRCFqCVSLbT7gno9sEdxWKQyRTVbYqqcWgtWmgEDUkMm2qgNvGpHnoA9hJaNQaWZ6GS b0BrnJygmJVR2UYjR9LKhz6UQu2XB9UoTj4FeuTQ4H2BZl3NFcVMUBnN3DoS4FjhZ9U7 yPKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=bToOVpK46OzbHh6on9WoLUFKcFMSRyIF0gxKWNbJ0MQ=; b=b9HUofY8ECy0FUwOuKBgBuHzq0r7gEfYASQgNFNgJ/vezFfE66UZYGDldvXJTufGVM cVVPdXeA84G1C+HeEkqEzuH57OhJku8dZpfDAiwao40ftcEHmsBzPKZdOD4WYJ1U67gH je2ig+egcMkpKkNF88qo4sX7GMBvcp1CKmc7cStN9HO3INib5BHMUpGTdMuxir9lZI0R ra8WDF1+0BKlFhbprnvEgoh/a4NrS4VXTvFxKFiRzYEvRksRX+C78M1Zjwem7Ipk29JC QMQxkHBwNtrnmb2xrGsQlr4TsIHZSbdWpM7ElOZRC/L/Ac58bJlPsO2B2YxkGIzWgxTi W8vw== 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 p12si723804edq.288.2021.03.30.20.50.49; Tue, 30 Mar 2021 20:51:12 -0700 (PDT) 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 S232874AbhCaDpG (ORCPT + 99 others); Tue, 30 Mar 2021 23:45:06 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:37558 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbhCaDof (ORCPT ); Tue, 30 Mar 2021 23:44:35 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0UTuuUW9_1617162268; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UTuuUW9_1617162268) by smtp.aliyun-inc.com(127.0.0.1); Wed, 31 Mar 2021 11:44:33 +0800 From: Jiapeng Chong To: nico@fluxnic.net Cc: linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] fs/cramfs: Remove useless call "zlib_inflateEnd" Date: Wed, 31 Mar 2021 11:44:26 +0800 Message-Id: <1617162266-843-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following whitescan warning: Calling "zlib_inflateEnd(&stream)" is only useful for its return value, which is ignored. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/cramfs/uncompress.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c index 975d98f..9e1a392 100644 --- a/fs/cramfs/uncompress.c +++ b/fs/cramfs/uncompress.c @@ -41,7 +41,6 @@ int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen) err = zlib_inflateReset(&stream); if (err != Z_OK) { pr_err("zlib_inflateReset error %d\n", err); - zlib_inflateEnd(&stream); zlib_inflateInit(&stream); } -- 1.8.3.1