Commit 655b7212 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by David S. Miller
Browse files

net/apm: Properly mark absence of FW



There is no need to set "N/A" if FW is not available.

Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8ed211af
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -89,7 +89,6 @@ static void xge_get_drvinfo(struct net_device *ndev,
	struct platform_device *pdev = pdata->pdev;

	strcpy(info->driver, "xgene-enet-v2");
	snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "N/A");
	sprintf(info->bus_info, "%s", pdev->name);
}

+0 −1
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ static void xgene_get_drvinfo(struct net_device *ndev,
	struct platform_device *pdev = pdata->pdev;

	strcpy(info->driver, "xgene_enet");
	snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "N/A");
	sprintf(info->bus_info, "%s", pdev->name);
}