net/broadcom: Don't set N/A FW if it is not available
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 1 Mar 2020 14:44:35 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:54:53 +0000 (17:54 -0800)
There is no need to explicitly set N/A if FW not available.

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

index 912e8d101e8d14a9cd11c52f45103d71a9a13a16..a877159eafb07becc42d5b0bb44d8cb492ec4757 100644 (file)
@@ -1303,7 +1303,6 @@ static void bcm_enet_get_drvinfo(struct net_device *netdev,
                                 struct ethtool_drvinfo *drvinfo)
 {
        strlcpy(drvinfo->driver, bcm_enet_driver_name, sizeof(drvinfo->driver));
-       strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
        strlcpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
 }
 
@@ -2527,7 +2526,6 @@ static void bcm_enetsw_get_drvinfo(struct net_device *netdev,
                                   struct ethtool_drvinfo *drvinfo)
 {
        strncpy(drvinfo->driver, bcm_enet_driver_name, sizeof(drvinfo->driver));
-       strncpy(drvinfo->fw_version, "N/A", 32);
        strncpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
 }