]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: hns: remove redundant hns_mac_dev_to_enet_if()
authorKejian Yan <yankejian@huawei.com>
Fri, 1 Jul 2016 09:34:11 +0000 (17:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 20:56:52 +0000 (16:56 -0400)
commit2e14b218f5f702520a99193fd7dea9888d734804
tree3bfd3709a6c5f8e4bf3f660913ee0aff8c2094ff
parent45fc764e3eecba6962b28a49a7c00ee4f5efff43
net: hns: remove redundant hns_mac_dev_to_enet_if()

The sequence of hns_mac_dev_to_enet_if() is the same as
hns_get_enet_interface(), and hns_get_enet_interface() is called
by initialization to get the mac mode. And the mode is not changed
anywhere. Thus add hns_mac_dev_to_enet_if() function to get the mac
mode is obviously redundant.

Reported-by: Jinchuan Tian <tianjinchuan1@huawei.com>
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c