diff options
author | Bogdan Hamciuc <bogdan.hamciuc@freescale.com> | 2013-05-23 22:02:01 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-29 23:12:30 (GMT) |
commit | 0cb8fe3deb1eb30d40d4939255b1875ec93a1ded (patch) | |
tree | 752837be6e7e6f78954ceee52f4b8ee050ec1c1c /drivers/net/ethernet/freescale | |
parent | a50ec604728431a60ff177a887e3bfee0ebec9bb (diff) | |
download | linux-fsl-qoriq-0cb8fe3deb1eb30d40d4939255b1875ec93a1ded.tar.xz |
dpaa_eth: Remove unused dpa_priv_s argument
Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
Change-Id: I5a8f34a48fe549d00a49270fa1b0442ead3bf5fa
Reviewed-on: http://git.am.freescale.net:8181/2755
Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Radulescu Ruxandra Ioana-B05472 <ruxandra.radulescu@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth.c index d808924..ec95e9c 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.c @@ -386,8 +386,7 @@ static void dpaa_eth_seed_pool(struct dpa_bp *bp) * Add buffers/pages/skbuffs for Rx processing whenever bpool count falls below * REFILL_THRESHOLD. */ -static void dpaa_eth_refill_bpools(struct dpa_priv_s *priv, - struct dpa_percpu_priv_s *percpu_priv) +static void dpaa_eth_refill_bpools(struct dpa_percpu_priv_s *percpu_priv) { int *countptr = percpu_priv->dpa_bp_count; int count = *countptr; @@ -859,13 +858,10 @@ dpa_fd_release_sg(const struct net_device *net_dev, void __attribute__((nonnull)) dpa_fd_release(const struct net_device *net_dev, const struct qm_fd *fd) { - const struct dpa_priv_s *priv; struct qm_sg_entry *sgt; struct dpa_bp *_dpa_bp, *dpa_bp; struct bm_buffer _bmb, bmb[8]; - priv = netdev_priv(net_dev); - _bmb.hi = fd->addr_hi; _bmb.lo = fd->addr_lo; @@ -2188,7 +2184,7 @@ ingress_rx_error_dqrr(struct qman_portal *portal, return qman_cb_dqrr_stop; } - dpaa_eth_refill_bpools(priv, percpu_priv); + dpaa_eth_refill_bpools(percpu_priv); _dpa_rx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); return qman_cb_dqrr_consume; @@ -2352,7 +2348,7 @@ ingress_rx_default_dqrr(struct qman_portal *portal, } /* Vale of plenty: make sure we didn't run out of buffers */ - dpaa_eth_refill_bpools(priv, percpu_priv); + dpaa_eth_refill_bpools(percpu_priv); _dpa_rx(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); return qman_cb_dqrr_consume; |