Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a614dd3 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

hns: remove useless void cast



There is no need to cast away return value of dev_close.

Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ddee3103
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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])