net/aeroflex: Don't assign FW if it is not available
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 24 Feb 2020 08:52:59 +0000 (10:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:23:37 +0000 (11:23 -0800)
If FW version is not available, it is enough to leave that field as
empty, there is no need to write N/A.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aeroflex/greth.c

index 198f154..bf54611 100644 (file)
@@ -1115,7 +1115,6 @@ static void greth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in
        strlcpy(info->driver, dev_driver_string(greth->dev),
                sizeof(info->driver));
        strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info));
-       strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
 }
 
 static void greth_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *p)