Commit 070663ff authored by Leon Romanovsky's avatar Leon Romanovsky Committed by David S. Miller
Browse files

net/aeroflex: Clean ethtool_info struct assignments



If FW version is not available, it is enough to leave that field as
empty, there is no need to write N/A.

The driver version is replaced in favor of generally available
in-tree variant.

Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1434ae95
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1114,7 +1114,6 @@ static void greth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in


	strlcpy(info->driver, dev_driver_string(greth->dev),
	strlcpy(info->driver, dev_driver_string(greth->dev),
		sizeof(info->driver));
		sizeof(info->driver));
	strlcpy(info->version, "revision: 1.0", sizeof(info->version));
	strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info));
	strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info));
	strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
	strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
}
}