summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-07-19 01:59:26 +0300
committerDavid S. Miller <davem@davemloft.net>2017-07-20 02:45:04 +0300
commit4a614dd3e550b66a2e57119e2d5e0fbc7f17f634 (patch)
treee54bf955d28d516a1ff40cc4a3108d7032981e60 /drivers/net/ethernet/hisilicon
parentddee3103eeafd1d9dbe831274c3813d5cac30bc3 (diff)
downloadlinux-4a614dd3e550b66a2e57119e2d5e0fbc7f17f634.tar.xz
hns: remove useless void cast
There is no need to cast away return value of dev_close. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hns_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c b/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
index a8db27e86a11..78cb20c67aa6 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
+++ b/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
@@ -595,7 +595,7 @@ static void hns_nic_self_test(struct net_device *ndev,
set_bit(NIC_STATE_TESTING, &priv->state);
if (if_running)
- (void)dev_close(ndev);
+ dev_close(ndev);
for (i = 0; i < SELF_TEST_TPYE_NUM; i++) {
if (!st_param[i][1])