Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4238671pxf; Tue, 30 Mar 2021 02:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB/PAYre06F7pT8PMsP1Kg861Du3h3osXyY9HXj5dNWkDLEmwqfz3xjkXeXu46rebm/gHB X-Received: by 2002:aa7:c1d0:: with SMTP id d16mr32269861edp.153.1617098010135; Tue, 30 Mar 2021 02:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617098010; cv=none; d=google.com; s=arc-20160816; b=JJd1bQ0diqpzEDAdoCdz/EwTyXaQ/bAgchvTOUm+fINzFYy133MG+3XTH8BleJv/ij RN51ReQtCMpm/OVCWSZOLFJ4GAV3hw4LzzghuNQ6Rp2P9NXCVD0Bp8cYVSpOrzea2tKn Tcs6wnZv5QHvaxmrw1XK66yQah8DLXaz3vTPhTG6L1yCFDJmnB94qB14M13DlHM2ZbXX PRmFpGwZlzvZ7rYCsfj4+DHBFOJEpAaLPm006iVjUpm5OFHwhf5JPcTYbAy93rqf1MJX kaPLa3LLIHcZzMw965XEgcxWRWJYpamFZQzEHoVuRjbVozeZkaFYlYR2dTjEdL/vjL6T tucg== 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=xNeEi1mtnszBEjo7sK94WcPwZvwxsZ0G5WmanLEb9es=; b=puqmagNYz2dZMjL3HVowi6ugx4Edf9WeB2SxVu9xMdpjUBx1DQgDBrV714Wikt3use LPEAgmrneeZc3zsmm5Ubokvb8z6JWG80D8MpaQVsXCTHtzuiB8rnpclBIVS/hl8cVDSH rfHv8yVN6TG7vCJqtGrpu1PHLgBDKbZrhVhyoa3+SeaiB+15R8bAr8Kygh6Nn953bBKE Z64BhT5gwc60J1lZIgtItHkyqBkTplPwObtxAZC8r4Takn499zB9u4lahBPukg0BXB9L 73OionnQwFs024oqcYrr7T9i+RdPcDLFbAvcAwPFXD2GDWPIJP5W1lR/epbUQJGUsDoS cjUw== 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 g13si14996167ejc.80.2021.03.30.02.53.07; Tue, 30 Mar 2021 02:53:30 -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 S231599AbhC3Jvy (ORCPT + 99 others); Tue, 30 Mar 2021 05:51:54 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:50148 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbhC3Jvw (ORCPT ); Tue, 30 Mar 2021 05:51:52 -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=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UTqqc7w_1617097892; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UTqqc7w_1617097892) by smtp.aliyun-inc.com(127.0.0.1); Tue, 30 Mar 2021 17:51:50 +0800 From: Jiapeng Chong To: paulus@samba.org Cc: davem@davemloft.net, kuba@kernel.org, linux-ppp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ppp: deflate: Remove useless call "zlib_inflateEnd" Date: Tue, 30 Mar 2021 17:51:30 +0800 Message-Id: <1617097890-27020-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(&state->strm)" is only useful for its return value, which is ignored. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/ppp/ppp_deflate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ppp/ppp_deflate.c b/drivers/net/ppp/ppp_deflate.c index c457f84..e6d48e5 100644 --- a/drivers/net/ppp/ppp_deflate.c +++ b/drivers/net/ppp/ppp_deflate.c @@ -279,7 +279,6 @@ static void z_decomp_free(void *arg) struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg; if (state) { - zlib_inflateEnd(&state->strm); vfree(state->strm.workspace); kfree(state); } -- 1.8.3.1