diff options
author | Rick Jones <rick.jones2@hp.com> | 2011-11-21 05:54:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-22 16:43:32 -0500 |
commit | 84b405011166e663fe9ef56c29b1d76f59b35568 (patch) | |
tree | 7b8648d4da4919f990254d93d1bb8f340a38b230 /drivers/net/vmxnet3 | |
parent | 4e3fd7a06dc20b2d8ec6892233ad2012968fe7b6 (diff) |
Sweep away N/A fw_version dustbunnies from the .get_drvinfo routine of a number of drivers
Per discussion with Ben Hutchings and David Miller, go through and
remove assignments of "N/A" to fw_version in various drivers'
.get_drvinfo routines. While there clean-up some use of bare
constants and such.
Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_ethtool.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c index 77f723415c9c..b492ee1e5f17 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethtool.c +++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c | |||
@@ -202,14 +202,9 @@ vmxnet3_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) | |||
202 | struct vmxnet3_adapter *adapter = netdev_priv(netdev); | 202 | struct vmxnet3_adapter *adapter = netdev_priv(netdev); |
203 | 203 | ||
204 | strlcpy(drvinfo->driver, vmxnet3_driver_name, sizeof(drvinfo->driver)); | 204 | strlcpy(drvinfo->driver, vmxnet3_driver_name, sizeof(drvinfo->driver)); |
205 | drvinfo->driver[sizeof(drvinfo->driver) - 1] = '\0'; | ||
206 | 205 | ||
207 | strlcpy(drvinfo->version, VMXNET3_DRIVER_VERSION_REPORT, | 206 | strlcpy(drvinfo->version, VMXNET3_DRIVER_VERSION_REPORT, |
208 | sizeof(drvinfo->version)); | 207 | sizeof(drvinfo->version)); |
209 | drvinfo->driver[sizeof(drvinfo->version) - 1] = '\0'; | ||
210 | |||
211 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
212 | drvinfo->fw_version[sizeof(drvinfo->fw_version) - 1] = '\0'; | ||
213 | 208 | ||
214 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 209 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
215 | ETHTOOL_BUSINFO_LEN); | 210 | ETHTOOL_BUSINFO_LEN); |