net: hns3: some cleanup for struct hns3_enet_ring
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 6 May 2019 02:48:51 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 May 2019 17:37:14 +0000 (10:37 -0700)
commit845e0d1d5290c3b242aa76f37b4a5cae287b6f75
tree80f6a38f16ab9ce3776e1db3617cc2263e15589b
parent389ca14615e5ea4f9a56d765ac1e0da22d8105c3
net: hns3: some cleanup for struct hns3_enet_ring

This patch removes some unused field in struct hns3_enet_ring,
use ring->dev for ring_to_dev macro, and use dev consistently
in hns3_fill_desc.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h