]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
corral some wayward N/A fw_version dust bunnies
authorRick Jones <rick.jones2@hp.com>
Tue, 22 Nov 2011 14:06:26 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Nov 2011 05:30:12 +0000 (00:30 -0500)
Round-up some wayward "N/A" fw_version dust bunnies as part of that
clean-up.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/neterion/s2io.c
drivers/net/ethernet/realtek/r8169.c

index 76ae476272002522250400b76da95deb6ce7d36c..97f63e12d86e21799f9473eee76d6052952b5fbb 100644 (file)
@@ -5393,7 +5393,6 @@ static void s2io_ethtool_gdrvinfo(struct net_device *dev,
 
        strlcpy(info->driver, s2io_driver_name, sizeof(info->driver));
        strlcpy(info->version, s2io_driver_version, sizeof(info->version));
-       strlcpy(info->fw_version, "", sizeof(info->fw_version));
        strlcpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info));
        info->regdump_len = XENA_REG_SPACE;
        info->eedump_len = XENA_EEPROM_SPACE;
index f7bc310f5185126a59e581775fb922b64f5129dc..e5a6d8e705028f6c69e181bfa2eb26f4bbf6d39d 100644 (file)
@@ -1405,8 +1405,9 @@ static void rtl8169_get_drvinfo(struct net_device *dev,
        strlcpy(info->version, RTL8169_VERSION, sizeof(info->version));
        strlcpy(info->bus_info, pci_name(tp->pci_dev), sizeof(info->bus_info));
        BUILD_BUG_ON(sizeof(info->fw_version) < sizeof(rtl_fw->version));
-       strlcpy(info->fw_version, IS_ERR_OR_NULL(rtl_fw) ? "N/A" :
-              rtl_fw->version, sizeof(info->fw_version));
+       if (!IS_ERR_OR_NULL(rtl_fw))
+               strlcpy(info->fw_version, rtl_fw->version,
+                       sizeof(info->fw_version));
 }
 
 static int rtl8169_get_regs_len(struct net_device *dev)