Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3338393imu; Sun, 11 Nov 2018 12:42:20 -0800 (PST) X-Google-Smtp-Source: AJdET5fB0uscGHqeRTBM2yX024mg1STQaXexssuelTl9TziJQawi2BlGlslmGSVtgrmAh7AhLF0Q X-Received: by 2002:a17:902:9a07:: with SMTP id v7-v6mr16819026plp.14.1541968940929; Sun, 11 Nov 2018 12:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968940; cv=none; d=google.com; s=arc-20160816; b=sqdLHQXH8acKiGGyA0w7mxIBZOD1Voeq5PgcFimx74fbEN2a49pKUOK4xVDyLet6Wg g3S8qVndda2o8vVHaHE8Mla3bbcDNN99oQ8j1+o+wZknTTGamPtK7wZL6f4G6wruHBsv H8ieUI0T4O99WxT2hEAInhVjG6smgozWQiUYaFaDVDb2Vt4Ra1hVGRbClEaBxzKmBqUw evMjqoLx/MDmsn0UPAoOtF/KWY5yPeew1nfqbTtlCsmdY2omG9zKlqenkJjqR2LRNa+0 Q5gqHamdmcpj//tzhxDdSuDWrSLlfuFO4OabxBmMcj9Y0i92x1i/B0p+0p3Lmbha5NDR bGPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=b2/uTPK6s5f+U0x+ATCUev50owXkFbx0H0IrDVGH8Uc=; b=MpCYxSHpLkI8Wob7Uh+kxYYq7SxUeLsI6M2lkl/iV+xoivpOb9soA1MVeZHExRgWSB UwsnLtE5swVNglzbnpkI4c7+KM7fzBN+mSDJi9LMRTEM911RlAvcFPSyIDbPDPmHfwwz WMrBNLa0Xo7ogCeSK3bsRNCY9qn+NditLvdxvLOyoxZN+mPnXiVkW2cDV8WFVKDjqYk9 TKunT1c21XFiwK5BMoWFiN2+RKJfQxHIrqm7/8LSNJAWKA0T9JzyeCBJoeq5zjOhbnwo n2ArbQ1oV7tBl9KnDFESWuMyN1/AN8Bze1XiXnba4ldBPxYEEAZiFZpQXDXGH3+/WC+y eODQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a93-v6si17618780pla.226.2018.11.11.12.42.05; Sun, 11 Nov 2018 12:42:20 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729875AbeKLFsD (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:03 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49270 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729543AbeKLFsB (ORCPT ); Mon, 12 Nov 2018 00:48:01 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsN-0000l8-Le; Sun, 11 Nov 2018 19:58:31 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsN-0001MK-HK; Sun, 11 Nov 2018 19:58:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 004/366] bcmgenet: Delete unused variable In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Ben Hutchings I needed to add a "kdev" variable to bcmgenet_desc_rx() when backporting commit 8c4799ac7996 "net: bcmgenet: Utilize correct struct device for all DMA operations", but when I later backported commit d6707bec5986 "net: bcmgenet: rewrite bcmgenet_rx_refill()" it became unused. Delete it. There is no corresponding upstream commit because these commits were applied in the opposite order and this variable was never introduced. Signed-off-by: Ben Hutchings --- --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -1344,7 +1344,6 @@ static unsigned int bcmgenet_desc_rx(str unsigned int budget) { struct net_device *dev = priv->dev; - struct device *kdev = &priv->pdev->dev; struct enet_cb *cb; struct sk_buff *skb; u32 dma_length_status;