]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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 da748beb7047590f1f35966a20c14880c27b7a80..b78d1a99fe819fd47c40f4b834379626685ab772 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 4e7a95bd83d70a1f225ee2baf800f0a4987f157d..ada70425b48cbdd55f59b044df4df6ecf073f716 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);
 }