mirror of https://gitee.com/openkylin/linux.git
net/apm: Properly mark absence of FW
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>
This commit is contained in:
parent
8ed211af28
commit
655b72126e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue