aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-10-25 18:22:55 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-29 12:08:34 -0700
commit352b1dee744090a4686bbf27b067f6cf87a40a35 (patch)
tree7a4564ffb2633e41cda66dacc7dce4854d6e13d6 /drivers/net
parentnet: dsa: return directly from dsa_to_port (diff)
downloadlinux-dev-352b1dee744090a4686bbf27b067f6cf87a40a35.tar.xz
linux-dev-352b1dee744090a4686bbf27b067f6cf87a40a35.zip
net: fec: remove redundant assignment to pointer bdp
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 <colin.king@canonical.com> Acked-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c1
1 files changed, 0 insertions, 1 deletions
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;