]> git.baikalelectronics.ru Git - 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)
commiteb37e6fa8f646c313194d9a74e6d7c87c8db0eec
tree3bfd3709a6c5f8e4bf3f660913ee0aff8c2094ff
parentb7511a75c7148b0391b8f440f8bcf4bc4217b3d1
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