diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-07-18 15:59:26 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-19 16:45:04 -0700 |
commit | 4a614dd3e550b66a2e57119e2d5e0fbc7f17f634 (patch) | |
tree | e54bf955d28d516a1ff40cc4a3108d7032981e60 | |
parent | ddee3103eeafd1d9dbe831274c3813d5cac30bc3 (diff) | |
download | linux-4a614dd3e550b66a2e57119e2d5e0fbc7f17f634.tar.bz2 |
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>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 2 |
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]) |