net/apm: Properly mark absence of FW
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 24 Feb 2020 08:53:08 +0000 (10:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:24:47 +0000 (11:24 -0800)
There is no need to set "N/A" if FW is not available.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene-v2/ethtool.c
drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c

index da748be..b78d1a9 100644 (file)
@@ -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);
 }
 
index 4e7a95b..ada7042 100644 (file)
@@ -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);
 }