Skip to content

Commit

Permalink
hns: remove useless void cast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jul 19, 2017
1 parent ddee310 commit 4a614dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 4a614dd

Please sign in to comment.