Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4128841ybg; Fri, 25 Oct 2019 13:47:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz4vNw66CSpeYn/BYimvBl+dv55ihleJ7af2oBzy1tix7IhRhha2az9MQK4rEzc272276q X-Received: by 2002:a17:906:5115:: with SMTP id w21mr5479516ejk.32.1572036438854; Fri, 25 Oct 2019 13:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036438; cv=none; d=google.com; s=arc-20160816; b=kcSYt7UCR3WrCQQjSNT7EDNpcgHoUD88MIu0YWiGqJ2KFGXCTXSgwIAcvzLjhP4csy Ma0tf5bKIecikOEEBWwE89HjFRaQU19Q8cn57UzwubaD+bH50zsLAEdgk+gXrUBCsNkr cGb7AikXTmVwtBMZ3V9p9cFBYylhqh6aSG1CPu+gIR7JPCHQTkTD5vRnzSB26+gJerbV hr6QBh1mE+Zu8pMTYiRukan37iW8SKXIDlU7Uv2oNhV+bZP1qe4JLePXmDvxFNbrHdWo f6L5Paa/WDdJKnLhfab+7KJFi4lHPqfolVbqEbS0ZybNuwS7Z+HtxClvTzscebv4gJ6O gEqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Ez2reXQmNvUL/LnILkzOYBUCSeHqzUqSQqm38EpEvqo=; b=xYftcTaVE/mDbzD+X4Kpn+GSk4B1Y4Lv1wmkdVWirtyZ1rYI6pS5LncGzq7rPCR+ee EbMfP8csMN7y/31xgNny4okCsXadtcugX4JBqDVMbzphrttyfrZ0jL7aMwGyPfd5cX78 RawX+7UML0+Msl2OhlmlFF39RGJAGwzXAYLC4ThIrKkI0zmhbkbqZ1KdTakWEovT1Vex EqoHkEyAApTMrvtNAiBThjvnF+rf/cWjFwSJEd2pWBE2qJaE7SuYs9rarkqWvvaslsHj QfoNxK8chEGK1b1mwYKcT6AJzXNgTVEF/XCMTDDF/D3k57ec/h4mjIybTpP3lCQAGBXx hlvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y56si1870768edd.275.2019.10.25.13.46.55; Fri, 25 Oct 2019 13:47:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409845AbfJYRXC (ORCPT + 99 others); Fri, 25 Oct 2019 13:23:02 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:51847 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407445AbfJYRXB (ORCPT ); Fri, 25 Oct 2019 13:23:01 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iO3Ie-0001We-GP; Fri, 25 Oct 2019 17:22:56 +0000 From: Colin King To: Fugang Duan , "David S . Miller" , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: fec: remove redundant assignment to pointer bdp Date: Fri, 25 Oct 2019 18:22:55 +0100 Message-Id: <20191025172255.4742-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The pointer bdp is being assigned with a value that is never read, so the assignment is redundant and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/ethernet/freescale/fec_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index d4d4c72adf49..608196bdd892 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -2706,7 +2706,6 @@ static void fec_enet_free_buffers(struct net_device *ndev) for (q = 0; q < fep->num_tx_queues; q++) { txq = fep->tx_queue[q]; - bdp = txq->bd.base; for (i = 0; i < txq->bd.ring_size; i++) { kfree(txq->tx_bounce[i]); txq->tx_bounce[i] = NULL; -- 2.20.1