diff options
author | Barry Song <song.bao.hua@hisilicon.com> | 2020-06-18 13:02:08 +1200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-18 20:43:10 -0700 |
commit | cb0e3e611575a3335ea0521c9e8ba84a6a7e51c6 (patch) | |
tree | b10ee0208f8c0a208eeec6ccca58103c35b2e2f7 /drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | |
parent | 674a135746aa7553eff12177d11868367aa102cb (diff) |
net: hns3: pointer type of buffer should be void
Move the type of buffer address from unsigned char to void
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_enet.c')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 1817d7f2e5f6..61b5a849b162 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -3070,7 +3070,7 @@ static int hns3_handle_rx_bd(struct hns3_enet_ring *ring) return -ENXIO; if (!skb) - ring->va = (unsigned char *)desc_cb->buf + desc_cb->page_offset; + ring->va = desc_cb->buf + desc_cb->page_offset; /* Prefetch first cache line of first page * Idea is to cache few bytes of the header of the packet. Our L1 Cache |