[PATCH net-next 1/4] net: spacemit: Remove unused buff_addr fields
Vivian Wang
wangruikang at iscas.ac.cn
Tue Mar 3 01:24:18 PST 2026
These were never used. Just remove them.
Fixes: bfec6d7f2001 ("net: spacemit: Add K1 Ethernet MAC")
Signed-off-by: Vivian Wang <wangruikang at iscas.ac.cn>
---
drivers/net/ethernet/spacemit/k1_emac.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/ethernet/spacemit/k1_emac.c b/drivers/net/ethernet/spacemit/k1_emac.c
index 338a2637b1da..af58eae6fcd8 100644
--- a/drivers/net/ethernet/spacemit/k1_emac.c
+++ b/drivers/net/ethernet/spacemit/k1_emac.c
@@ -57,7 +57,6 @@
struct desc_buf {
u64 dma_addr;
- void *buff_addr;
u16 dma_len;
u8 map_as_page;
};
@@ -70,7 +69,6 @@ struct emac_tx_desc_buffer {
struct emac_rx_desc_buffer {
struct sk_buff *skb;
u64 dma_addr;
- void *buff_addr;
u16 dma_len;
u8 map_as_page;
};
@@ -340,7 +338,6 @@ static void emac_free_tx_buf(struct emac_priv *priv, int i)
buf->dma_addr = 0;
buf->map_as_page = false;
- buf->buff_addr = NULL;
}
if (tx_buf->skb) {
--
2.53.0
More information about the linux-riscv
mailing list