diff options
author | Andrew Halaney <ahalaney@redhat.com> | 2023-04-11 15:04:04 -0500 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-04-13 12:50:46 +0200 |
commit | 0c3f3c4f4b15a2c105e1ca882d100048074a2865 (patch) | |
tree | 4bdd6a1ff49ceb7343eae613073a1b8280359032 /drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c | |
parent | d638dcb52b099e9123bef2690ffe2e2bf9d39746 (diff) | |
download | linux-stable-0c3f3c4f4b15a2c105e1ca882d100048074a2865.tar.gz linux-stable-0c3f3c4f4b15a2c105e1ca882d100048074a2865.tar.bz2 linux-stable-0c3f3c4f4b15a2c105e1ca882d100048074a2865.zip |
net: stmmac: Remove some unnecessary void pointers
There's a few spots in the hardware interface where a void pointer is
used, but what's passed in and later cast out is always the same type.
Just use the proper type directly.
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c index b1f0c3984a09..13c347ee8be9 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c @@ -8,7 +8,8 @@ #include "common.h" #include "dwxgmac2.h" -static int dwxgmac2_get_tx_status(void *data, struct stmmac_extra_stats *x, +static int dwxgmac2_get_tx_status(struct net_device_stats *stats, + struct stmmac_extra_stats *x, struct dma_desc *p, void __iomem *ioaddr) { unsigned int tdes3 = le32_to_cpu(p->des3); @@ -22,7 +23,8 @@ static int dwxgmac2_get_tx_status(void *data, struct stmmac_extra_stats *x, return ret; } -static int dwxgmac2_get_rx_status(void *data, struct stmmac_extra_stats *x, +static int dwxgmac2_get_rx_status(struct net_device_stats *stats, + struct stmmac_extra_stats *x, struct dma_desc *p) { unsigned int rdes3 = le32_to_cpu(p->des3); |