summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-06-01 21:58:34 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2016-06-03 09:14:14 +0200
commit2ea081c242269616dbcec8c176fbf5589ec66078 (patch)
tree585f3a880ad753b433c05b326334d269c7413431 /drivers/net
parenta199e7b2210206e3ab53df537614baf524b22343 (diff)
downloadbarebox-2ea081c242269616dbcec8c176fbf5589ec66078.tar.gz
barebox-2ea081c242269616dbcec8c176fbf5589ec66078.tar.xz
e1000: Remove unnecessary variable
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 <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/e1000/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/e1000/main.c b/drivers/net/e1000/main.c
index 978e525aa5..6d92cdedde 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;