aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
diff options
context:
space:
mode:
authorKejian Yan <yankejian@huawei.com>2017-04-01 12:03:41 +0100
committerDavid S. Miller <davem@davemloft.net>2017-04-03 14:48:43 -0700
commit20f0d4f736b7732709b8b9b25be6d88dcc3b48d3 (patch)
tree1316e94faf0687cc9dc504c42a52701065d7e5d5 /drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
parentnet: hns: Remove the redundant adding and deleting mac function (diff)
downloadlinux-dev-20f0d4f736b7732709b8b9b25be6d88dcc3b48d3.tar.xz
linux-dev-20f0d4f736b7732709b8b9b25be6d88dcc3b48d3.zip
net: hns: Remove redundant mac_get_id()
There is a mac_id in mac control block structure, so the callback function mac_get_id() is useless. Here we remove this function. Reported-by: Weiwei Deng <dengweiwei@huawei.com> Signed-off-by: Kejian Yan <yankejian@huawei.com> Reviewed-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
index e6842c922e95..24dfba53a0f2 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
+++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
@@ -373,8 +373,6 @@ struct mac_driver {
void (*set_rx_ignore_pause_frames)(void *mac_drv, u32 enable);
/* config rx mode for promiscuous*/
void (*set_promiscuous)(void *mac_drv, u8 enable);
- /* get mac id */
- void (*mac_get_id)(void *mac_drv, u8 *mac_id);
void (*mac_pausefrm_cfg)(void *mac_drv, u32 rx_en, u32 tx_en);
void (*autoneg_stat)(void *mac_drv, u32 *enable);