summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/aeroflex
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2020-02-24 11:52:59 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-24 22:23:37 +0300
commit7686221b8b482ddc0bd17ffebe5c41a0d427555f (patch)
tree5e77b9a94cc88714944b7e2c2e5d1a7b7f3def5f /drivers/net/ethernet/aeroflex
parent070663fff8ee310b439009c025ad83cfe5e0fd4a (diff)
downloadlinux-7686221b8b482ddc0bd17ffebe5c41a0d427555f.tar.xz
net/aeroflex: Don't assign FW if it is not available
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>
Diffstat (limited to 'drivers/net/ethernet/aeroflex')
-rw-r--r--drivers/net/ethernet/aeroflex/greth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aeroflex/greth.c b/drivers/net/ethernet/aeroflex/greth.c
index 198f1544e271..bf546118dbc6 100644
--- a/drivers/net/ethernet/aeroflex/greth.c
+++ b/drivers/net/ethernet/aeroflex/greth.c
@@ -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)