From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b7nBK-0003gw-Ed for barebox@lists.infradead.org; Tue, 31 May 2016 17:10:21 +0000 Received: by mail-pa0-x241.google.com with SMTP id gp3so18682122pac.2 for ; Tue, 31 May 2016 10:09:58 -0700 (PDT) From: Andrey Smirnov Date: Tue, 31 May 2016 10:09:24 -0700 Message-Id: <1464714580-31488-6-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1464714580-31488-1-git-send-email-andrew.smirnov@gmail.com> References: <1464714580-31488-1-git-send-email-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 05/21] e1000: Remove unnecessary variable To: barebox@lists.infradead.org Cc: Andrey Smirnov There doesn't seem to be any point for having 'nv_packet' variable and it looks like a leftover from driving porting. Remove it and use 'txpacket' instead Signed-off-by: Andrey Smirnov --- drivers/net/e1000/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/e1000/main.c b/drivers/net/e1000/main.c index 978e525..6d92cde 100644 --- a/drivers/net/e1000/main.c +++ b/drivers/net/e1000/main.c @@ -3396,7 +3396,6 @@ static int e1000_poll(struct eth_device *edev) static int e1000_transmit(struct eth_device *edev, void *txpacket, int length) { - void *nv_packet = (void *)txpacket; struct e1000_hw *hw = edev->priv; volatile struct e1000_tx_desc *txp; uint64_t to; @@ -3404,7 +3403,7 @@ static int e1000_transmit(struct eth_device *edev, void *txpacket, int length) txp = hw->tx_base + hw->tx_tail; hw->tx_tail = (hw->tx_tail + 1) % 8; - txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, nv_packet)); + txp->buffer_addr = cpu_to_le64(virt_to_bus(hw->pdev, txpacket)); txp->lower.data = cpu_to_le32(hw->txd_cmd | length); txp->upper.data = 0; -- 2.5.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox