hns: remove useless void cast
authorstephen hemminger <stephen@networkplumber.org>
Tue, 18 Jul 2017 22:59:26 +0000 (15:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 23:45:04 +0000 (16:45 -0700)
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>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c

index a8db27e86a112cde0ba71dfe9cc3d39a2ae1d270..78cb20c67aa6bab93562bb2957483cfd062d6d49 100644 (file)
@@ -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])