diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2018-05-18 16:56:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-18 18:00:16 +0300 |
commit | 357951cdf0dcdcc2bacb00c2e7665217a2fe34bf (patch) | |
tree | 39f05e6cfffc0781474f47d1152f061c721e322e /drivers/net/ethernet/stmicro/stmmac/norm_desc.c | |
parent | f1565c60210f049e068549bfc2a945331e0ee288 (diff) | |
download | linux-357951cdf0dcdcc2bacb00c2e7665217a2fe34bf.tar.xz |
net: stmmac: Uniformize set_rx_owner()
Currently an if condition is used to select the correct callback to set
rx_onwer in descriptor. Lets keep this simple and always use the same
callback.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Vitor Soares <soares@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/norm_desc.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/norm_desc.c b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c index a7b221b59178..2facdb5d1aa0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/norm_desc.c +++ b/drivers/net/ethernet/stmicro/stmmac/norm_desc.c @@ -168,7 +168,7 @@ static void ndesc_set_tx_owner(struct dma_desc *p) p->des0 |= cpu_to_le32(TDES0_OWN); } -static void ndesc_set_rx_owner(struct dma_desc *p) +static void ndesc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) { p->des0 |= cpu_to_le32(RDES0_OWN); } |