diff options
-rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl1.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb/cxgb2.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e100.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/ethtool.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ethtool.c | 10 | ||||
-rw-r--r-- | drivers/net/ethernet/marvell/skge.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/marvell/sky2.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qla3xxx.c | 1 | ||||
-rw-r--r-- | drivers/net/tun.c | 1 | ||||
-rw-r--r-- | drivers/net/veth.c | 1 | ||||
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_ethtool.c | 5 |
17 files changed, 7 insertions, 31 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c b/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c index 7be884d0aaf6..0a9326aa58b5 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c | |||
@@ -232,7 +232,6 @@ static void atl1c_get_drvinfo(struct net_device *netdev, | |||
232 | strlcpy(drvinfo->driver, atl1c_driver_name, sizeof(drvinfo->driver)); | 232 | strlcpy(drvinfo->driver, atl1c_driver_name, sizeof(drvinfo->driver)); |
233 | strlcpy(drvinfo->version, atl1c_driver_version, | 233 | strlcpy(drvinfo->version, atl1c_driver_version, |
234 | sizeof(drvinfo->version)); | 234 | sizeof(drvinfo->version)); |
235 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
236 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 235 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
237 | sizeof(drvinfo->bus_info)); | 236 | sizeof(drvinfo->bus_info)); |
238 | drvinfo->n_stats = 0; | 237 | drvinfo->n_stats = 0; |
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c index 33a4e35f5ee8..9bd204976648 100644 --- a/drivers/net/ethernet/atheros/atlx/atl1.c +++ b/drivers/net/ethernet/atheros/atlx/atl1.c | |||
@@ -3365,7 +3365,6 @@ static void atl1_get_drvinfo(struct net_device *netdev, | |||
3365 | strlcpy(drvinfo->driver, ATLX_DRIVER_NAME, sizeof(drvinfo->driver)); | 3365 | strlcpy(drvinfo->driver, ATLX_DRIVER_NAME, sizeof(drvinfo->driver)); |
3366 | strlcpy(drvinfo->version, ATLX_DRIVER_VERSION, | 3366 | strlcpy(drvinfo->version, ATLX_DRIVER_VERSION, |
3367 | sizeof(drvinfo->version)); | 3367 | sizeof(drvinfo->version)); |
3368 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
3369 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 3368 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
3370 | sizeof(drvinfo->bus_info)); | 3369 | sizeof(drvinfo->bus_info)); |
3371 | drvinfo->eedump_len = ATL1_EEDUMP_LEN; | 3370 | drvinfo->eedump_len = ATL1_EEDUMP_LEN; |
diff --git a/drivers/net/ethernet/chelsio/cxgb/cxgb2.c b/drivers/net/ethernet/chelsio/cxgb/cxgb2.c index a971796b2262..1d17c92f2dda 100644 --- a/drivers/net/ethernet/chelsio/cxgb/cxgb2.c +++ b/drivers/net/ethernet/chelsio/cxgb/cxgb2.c | |||
@@ -436,7 +436,6 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
436 | 436 | ||
437 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 437 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
438 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 438 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
439 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
440 | strlcpy(info->bus_info, pci_name(adapter->pdev), | 439 | strlcpy(info->bus_info, pci_name(adapter->pdev), |
441 | sizeof(info->bus_info)); | 440 | sizeof(info->bus_info)); |
442 | } | 441 | } |
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c index 63ffaa7e255f..857cc254cab8 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | |||
@@ -1580,9 +1580,7 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
1580 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 1580 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
1581 | strlcpy(info->bus_info, pci_name(adapter->pdev), | 1581 | strlcpy(info->bus_info, pci_name(adapter->pdev), |
1582 | sizeof(info->bus_info)); | 1582 | sizeof(info->bus_info)); |
1583 | if (!fw_vers) | 1583 | if (fw_vers) |
1584 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
1585 | else { | ||
1586 | snprintf(info->fw_version, sizeof(info->fw_version), | 1584 | snprintf(info->fw_version, sizeof(info->fw_version), |
1587 | "%s %u.%u.%u TP %u.%u.%u", | 1585 | "%s %u.%u.%u TP %u.%u.%u", |
1588 | G_FW_VERSION_TYPE(fw_vers) ? "T" : "N", | 1586 | G_FW_VERSION_TYPE(fw_vers) ? "T" : "N", |
@@ -1592,7 +1590,6 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
1592 | G_TP_VERSION_MAJOR(tp_vers), | 1590 | G_TP_VERSION_MAJOR(tp_vers), |
1593 | G_TP_VERSION_MINOR(tp_vers), | 1591 | G_TP_VERSION_MINOR(tp_vers), |
1594 | G_TP_VERSION_MICRO(tp_vers)); | 1592 | G_TP_VERSION_MICRO(tp_vers)); |
1595 | } | ||
1596 | } | 1593 | } |
1597 | 1594 | ||
1598 | static void get_strings(struct net_device *dev, u32 stringset, u8 * data) | 1595 | static void get_strings(struct net_device *dev, u32 stringset, u8 * data) |
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index fd6d460ea475..a34e7ce7e214 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
@@ -1007,9 +1007,7 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
1007 | strlcpy(info->bus_info, pci_name(adapter->pdev), | 1007 | strlcpy(info->bus_info, pci_name(adapter->pdev), |
1008 | sizeof(info->bus_info)); | 1008 | sizeof(info->bus_info)); |
1009 | 1009 | ||
1010 | if (!adapter->params.fw_vers) | 1010 | if (adapter->params.fw_vers) |
1011 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
1012 | else | ||
1013 | snprintf(info->fw_version, sizeof(info->fw_version), | 1011 | snprintf(info->fw_version, sizeof(info->fw_version), |
1014 | "%u.%u.%u.%u, TP %u.%u.%u.%u", | 1012 | "%u.%u.%u.%u, TP %u.%u.%u.%u", |
1015 | FW_HDR_FW_VER_MAJOR_GET(adapter->params.fw_vers), | 1013 | FW_HDR_FW_VER_MAJOR_GET(adapter->params.fw_vers), |
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c index 46003278ffa0..9436397e5725 100644 --- a/drivers/net/ethernet/intel/e100.c +++ b/drivers/net/ethernet/intel/e100.c | |||
@@ -2378,7 +2378,6 @@ static void e100_get_drvinfo(struct net_device *netdev, | |||
2378 | struct nic *nic = netdev_priv(netdev); | 2378 | struct nic *nic = netdev_priv(netdev); |
2379 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 2379 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
2380 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 2380 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
2381 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
2382 | strlcpy(info->bus_info, pci_name(nic->pdev), | 2381 | strlcpy(info->bus_info, pci_name(nic->pdev), |
2383 | sizeof(info->bus_info)); | 2382 | sizeof(info->bus_info)); |
2384 | } | 2383 | } |
diff --git a/drivers/net/ethernet/intel/e1000/e1000_ethtool.c b/drivers/net/ethernet/intel/e1000/e1000_ethtool.c index 63faec693deb..3103f0b6bf5e 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_ethtool.c +++ b/drivers/net/ethernet/intel/e1000/e1000_ethtool.c | |||
@@ -521,7 +521,6 @@ static void e1000_get_drvinfo(struct net_device *netdev, | |||
521 | strlcpy(drvinfo->version, e1000_driver_version, | 521 | strlcpy(drvinfo->version, e1000_driver_version, |
522 | sizeof(drvinfo->version)); | 522 | sizeof(drvinfo->version)); |
523 | 523 | ||
524 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
525 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 524 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
526 | sizeof(drvinfo->bus_info)); | 525 | sizeof(drvinfo->bus_info)); |
527 | drvinfo->regdump_len = e1000_get_regs_len(netdev); | 526 | drvinfo->regdump_len = e1000_get_regs_len(netdev); |
diff --git a/drivers/net/ethernet/intel/igbvf/ethtool.c b/drivers/net/ethernet/intel/igbvf/ethtool.c index e60f1c6957af..7b600a1f6366 100644 --- a/drivers/net/ethernet/intel/igbvf/ethtool.c +++ b/drivers/net/ethernet/intel/igbvf/ethtool.c | |||
@@ -195,8 +195,6 @@ static void igbvf_get_drvinfo(struct net_device *netdev, | |||
195 | strlcpy(drvinfo->driver, igbvf_driver_name, sizeof(drvinfo->driver)); | 195 | strlcpy(drvinfo->driver, igbvf_driver_name, sizeof(drvinfo->driver)); |
196 | strlcpy(drvinfo->version, igbvf_driver_version, | 196 | strlcpy(drvinfo->version, igbvf_driver_version, |
197 | sizeof(drvinfo->version)); | 197 | sizeof(drvinfo->version)); |
198 | strlcpy(drvinfo->fw_version, "N/A", | ||
199 | sizeof(drvinfo->fw_version)); | ||
200 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 198 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
201 | sizeof(drvinfo->bus_info)); | 199 | sizeof(drvinfo->bus_info)); |
202 | drvinfo->regdump_len = igbvf_get_regs_len(netdev); | 200 | drvinfo->regdump_len = igbvf_get_regs_len(netdev); |
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c b/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c index 96fcb0e06450..dbb7dd2f8e36 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c +++ b/drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c | |||
@@ -477,7 +477,6 @@ ixgb_get_drvinfo(struct net_device *netdev, | |||
477 | sizeof(drvinfo->driver)); | 477 | sizeof(drvinfo->driver)); |
478 | strlcpy(drvinfo->version, ixgb_driver_version, | 478 | strlcpy(drvinfo->version, ixgb_driver_version, |
479 | sizeof(drvinfo->version)); | 479 | sizeof(drvinfo->version)); |
480 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
481 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 480 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
482 | sizeof(drvinfo->bus_info)); | 481 | sizeof(drvinfo->bus_info)); |
483 | drvinfo->n_stats = IXGB_STATS_LEN; | 482 | drvinfo->n_stats = IXGB_STATS_LEN; |
diff --git a/drivers/net/ethernet/intel/ixgbevf/ethtool.c b/drivers/net/ethernet/intel/ixgbevf/ethtool.c index 149fa520d7f2..dc8e6511c640 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ethtool.c +++ b/drivers/net/ethernet/intel/ixgbevf/ethtool.c | |||
@@ -267,11 +267,11 @@ static void ixgbevf_get_drvinfo(struct net_device *netdev, | |||
267 | { | 267 | { |
268 | struct ixgbevf_adapter *adapter = netdev_priv(netdev); | 268 | struct ixgbevf_adapter *adapter = netdev_priv(netdev); |
269 | 269 | ||
270 | strlcpy(drvinfo->driver, ixgbevf_driver_name, 32); | 270 | strlcpy(drvinfo->driver, ixgbevf_driver_name, sizeof(drvinfo->driver)); |
271 | strlcpy(drvinfo->version, ixgbevf_driver_version, 32); | 271 | strlcpy(drvinfo->version, ixgbevf_driver_version, |
272 | 272 | sizeof(drvinfo->version)); | |
273 | strlcpy(drvinfo->fw_version, "N/A", 4); | 273 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
274 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 32); | 274 | sizeof(drvinfo->bus_info)); |
275 | } | 275 | } |
276 | 276 | ||
277 | static void ixgbevf_get_ringparam(struct net_device *netdev, | 277 | static void ixgbevf_get_ringparam(struct net_device *netdev, |
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index 3943f5f7bb4a..d957b2cf0869 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c | |||
@@ -396,7 +396,6 @@ static void skge_get_drvinfo(struct net_device *dev, | |||
396 | 396 | ||
397 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 397 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
398 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 398 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
399 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
400 | strlcpy(info->bus_info, pci_name(skge->hw->pdev), | 399 | strlcpy(info->bus_info, pci_name(skge->hw->pdev), |
401 | sizeof(info->bus_info)); | 400 | sizeof(info->bus_info)); |
402 | } | 401 | } |
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index ca33908bc7f3..29adc7850ee4 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c | |||
@@ -3645,7 +3645,6 @@ static void sky2_get_drvinfo(struct net_device *dev, | |||
3645 | 3645 | ||
3646 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 3646 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
3647 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 3647 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
3648 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
3649 | strlcpy(info->bus_info, pci_name(sky2->hw->pdev), | 3648 | strlcpy(info->bus_info, pci_name(sky2->hw->pdev), |
3650 | sizeof(info->bus_info)); | 3649 | sizeof(info->bus_info)); |
3651 | } | 3650 | } |
diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c index 0063194adb9e..ac4e72d529e5 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c | |||
@@ -163,7 +163,6 @@ static void pch_gbe_get_drvinfo(struct net_device *netdev, | |||
163 | 163 | ||
164 | strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); | 164 | strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver)); |
165 | strlcpy(drvinfo->version, pch_driver_version, sizeof(drvinfo->version)); | 165 | strlcpy(drvinfo->version, pch_driver_version, sizeof(drvinfo->version)); |
166 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
167 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), | 166 | strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), |
168 | sizeof(drvinfo->bus_info)); | 167 | sizeof(drvinfo->bus_info)); |
169 | drvinfo->regdump_len = pch_gbe_get_regs_len(netdev); | 168 | drvinfo->regdump_len = pch_gbe_get_regs_len(netdev); |
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c index 9416f297100e..7931531c3a40 100644 --- a/drivers/net/ethernet/qlogic/qla3xxx.c +++ b/drivers/net/ethernet/qlogic/qla3xxx.c | |||
@@ -1738,7 +1738,6 @@ static void ql_get_drvinfo(struct net_device *ndev, | |||
1738 | strlcpy(drvinfo->driver, ql3xxx_driver_name, sizeof(drvinfo->driver)); | 1738 | strlcpy(drvinfo->driver, ql3xxx_driver_name, sizeof(drvinfo->driver)); |
1739 | strlcpy(drvinfo->version, ql3xxx_driver_version, | 1739 | strlcpy(drvinfo->version, ql3xxx_driver_version, |
1740 | sizeof(drvinfo->version)); | 1740 | sizeof(drvinfo->version)); |
1741 | strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); | ||
1742 | strlcpy(drvinfo->bus_info, pci_name(qdev->pdev), | 1741 | strlcpy(drvinfo->bus_info, pci_name(qdev->pdev), |
1743 | sizeof(drvinfo->bus_info)); | 1742 | sizeof(drvinfo->bus_info)); |
1744 | drvinfo->regdump_len = 0; | 1743 | drvinfo->regdump_len = 0; |
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 3dd13d606d00..93c5d72711b0 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1592,7 +1592,6 @@ static void tun_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info | |||
1592 | 1592 | ||
1593 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 1593 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
1594 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 1594 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
1595 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
1596 | 1595 | ||
1597 | switch (tun->flags & TUN_TYPE_MASK) { | 1596 | switch (tun->flags & TUN_TYPE_MASK) { |
1598 | case TUN_TUN_DEV: | 1597 | case TUN_TUN_DEV: |
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index b576812bdc59..49f4667e1fa3 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -68,7 +68,6 @@ static void veth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *inf | |||
68 | { | 68 | { |
69 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); | 69 | strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); |
70 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); | 70 | strlcpy(info->version, DRV_VERSION, sizeof(info->version)); |
71 | strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); | ||
72 | } | 71 | } |
73 | 72 | ||
74 | static void veth_get_strings(struct net_device *dev, u32 stringset, u8 *buf) | 73 | static void veth_get_strings(struct net_device *dev, u32 stringset, u8 *buf) |
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); |