Commit fdb6ca9e authored by Ioana Ciornei's avatar Ioana Ciornei Committed by David S. Miller

dpaa2-eth: remove unused priv parameter

The priv parameter is never used in the build_linear_skb and
drain_channel function. Remove it from the function definitions.
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 85b7a342
...@@ -98,8 +98,7 @@ static void free_rx_fd(struct dpaa2_eth_priv *priv, ...@@ -98,8 +98,7 @@ static void free_rx_fd(struct dpaa2_eth_priv *priv,
} }
/* Build a linear skb based on a single-buffer frame descriptor */ /* Build a linear skb based on a single-buffer frame descriptor */
static struct sk_buff *build_linear_skb(struct dpaa2_eth_priv *priv, static struct sk_buff *build_linear_skb(struct dpaa2_eth_channel *ch,
struct dpaa2_eth_channel *ch,
const struct dpaa2_fd *fd, const struct dpaa2_fd *fd,
void *fd_vaddr) void *fd_vaddr)
{ {
...@@ -233,7 +232,7 @@ static void dpaa2_eth_rx(struct dpaa2_eth_priv *priv, ...@@ -233,7 +232,7 @@ static void dpaa2_eth_rx(struct dpaa2_eth_priv *priv,
percpu_extras = this_cpu_ptr(priv->percpu_extras); percpu_extras = this_cpu_ptr(priv->percpu_extras);
if (fd_format == dpaa2_fd_single) { if (fd_format == dpaa2_fd_single) {
skb = build_linear_skb(priv, ch, fd, vaddr); skb = build_linear_skb(ch, fd, vaddr);
} else if (fd_format == dpaa2_fd_sg) { } else if (fd_format == dpaa2_fd_sg) {
skb = build_frag_skb(priv, ch, buf_data); skb = build_frag_skb(priv, ch, buf_data);
skb_free_frag(vaddr); skb_free_frag(vaddr);
...@@ -1085,8 +1084,7 @@ static int dpaa2_eth_open(struct net_device *net_dev) ...@@ -1085,8 +1084,7 @@ static int dpaa2_eth_open(struct net_device *net_dev)
/* The DPIO store must be empty when we call this, /* The DPIO store must be empty when we call this,
* at the end of every NAPI cycle. * at the end of every NAPI cycle.
*/ */
static u32 drain_channel(struct dpaa2_eth_priv *priv, static u32 drain_channel(struct dpaa2_eth_channel *ch)
struct dpaa2_eth_channel *ch)
{ {
u32 drained = 0, total = 0; u32 drained = 0, total = 0;
...@@ -1107,7 +1105,7 @@ static u32 drain_ingress_frames(struct dpaa2_eth_priv *priv) ...@@ -1107,7 +1105,7 @@ static u32 drain_ingress_frames(struct dpaa2_eth_priv *priv)
for (i = 0; i < priv->num_channels; i++) { for (i = 0; i < priv->num_channels; i++) {
ch = priv->channel[i]; ch = priv->channel[i];
drained += drain_channel(priv, ch); drained += drain_channel(ch);
} }
return drained; return drained;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment