Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3011447pxj; Mon, 17 May 2021 15:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMwyqgZ5vYAecsv8VYKFyHSdnP7lnND9xe4Iqbxit/zI9I8UPO5/goD3SlPfjgLxhNY4rF X-Received: by 2002:a17:907:20b0:: with SMTP id pw16mr2363919ejb.48.1621290700216; Mon, 17 May 2021 15:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621290700; cv=none; d=google.com; s=arc-20160816; b=NwrrN2T2idfjGVBIxi5anOHQwa/0OrdVa0CMZpbpHxV2+WTuQcw1QAuNtEsBkV375Y hjhzddmhrR8y6G55EA9usYba/G2Y1XLIw2uGhSvIFxNUNwJx/ENZrXbZfqzK8KTNYIt5 H3s0WgTeTbn04Ip6vzaJQ35ThtMoO9MDaAtecMR518+36DL/cpLQPTH+Et4spO5kn/lv v/xnqnzV+juFad1SnSMxgT6SuKLwD1d8HxC3huVImx4dJIM+rLuNQTY8Ze8ExrR2zAfu /ypmFrwB5/YwqzkJL99wHMauGUWcEwNHZirKonNFTpJUsGuGpY6cq2RMrv1TaWZppYY5 1/MQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=opfiMkbAzFGJ/E1za07PNakHiKyBERpOywPNJbycUyg=; b=r3nNKbT6FSWK/Lgpn6xiDHu+P/TvGwQBgZAaSVc6/wtw3DZ4WXwDA11dpdZhr4TuEs 4Xz3zWmdtmkCU2RYijOhVJadA6vqHGda8GfkMVVdKn3PJvqMcMD8N89E7iCtV2RE8WD/ cqBDxp+IP9SFW5jYdCIcStmrlFI4Fxo0qHLkzbn7ClZCTtzngKpGZScAeYfchRxZR3aC iZzxDTGk4AQ2L94j5FI/qvLb3mDoudNO/2JkTsDML8CAiZeNskG9mHQ5lef2HWNDGwGv /alky8K8JiF68mjDMnpJFxbRKQGzwdKQSFiUy+hTDMAOJc3Xs9fgu6gzbnyuY6u1caX0 EQdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B9mrAkjK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si15425616edd.548.2021.05.17.15.31.17; Mon, 17 May 2021 15:31:40 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B9mrAkjK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238220AbhEQOPf (ORCPT + 99 others); Mon, 17 May 2021 10:15:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:46662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238472AbhEQOM7 (ORCPT ); Mon, 17 May 2021 10:12:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F20F661355; Mon, 17 May 2021 14:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260503; bh=RCxLgN7/gkXsKhym5ThqqgbVTx9xWZPHnifZLnamMSs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B9mrAkjKpZ8Xu5l7arjSSoBUoSzNL+HeRFlg/v71kBYTbVkxL+a1vq1eCKNlpjWxP aFlCRmpr430zT98K11D5qbb1Xbj2KtReykLuyywk4KiOQTSWIqQCI0mIT1bGv8I39F 9MXB6AaQ0wRPUb3Gv3VOoxys523ywyApFuw96+54= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Assmann , Tony Nguyen , Sasha Levin Subject: [PATCH 5.12 111/363] iavf: remove duplicate free resources calls Date: Mon, 17 May 2021 15:59:37 +0200 Message-Id: <20210517140306.366541753@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Stefan Assmann [ Upstream commit 1a0e880b028f97478dc689e2900b312741d0d772 ] Both iavf_free_all_tx_resources() and iavf_free_all_rx_resources() have already been called in the very same function. Remove the duplicate calls. Signed-off-by: Stefan Assmann Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/iavf/iavf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index dc5b3c06d1e0..ebd08543791b 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -3899,8 +3899,6 @@ static void iavf_remove(struct pci_dev *pdev) iounmap(hw->hw_addr); pci_release_regions(pdev); - iavf_free_all_tx_resources(adapter); - iavf_free_all_rx_resources(adapter); iavf_free_queues(adapter); kfree(adapter->vf_res); spin_lock_bh(&adapter->mac_vlan_list_lock); -- 2.30.2