Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net: get rid of unnecessary initializations in .get_drvinfo()

Many drivers initialize uselessly n_priv_flags, n_stats, testinfo_len,
eedump_len & regdump_len fields in their .get_drvinfo() ethtool op.
It's not necessary as these fields is filled in ethtool_get_drvinfo().

v2: removed unused variable
v3: removed another unused variable

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ivan Vecera and committed by
David S. Miller
47ea0325 ae230518

-113
-3
drivers/infiniband/hw/nes/nes_nic.c
··· 1325 1325 "%u.%u", nesadapter->firmware_version >> 16, 1326 1326 nesadapter->firmware_version & 0x000000ff); 1327 1327 strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version)); 1328 - drvinfo->testinfo_len = 0; 1329 - drvinfo->eedump_len = 0; 1330 - drvinfo->regdump_len = 0; 1331 1328 } 1332 1329 1333 1330
-2
drivers/net/ethernet/aeroflex/greth.c
··· 1141 1141 strlcpy(info->version, "revision: 1.0", sizeof(info->version)); 1142 1142 strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info)); 1143 1143 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); 1144 - info->eedump_len = 0; 1145 - info->regdump_len = sizeof(struct greth_regs); 1146 1144 } 1147 1145 1148 1146 static void greth_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *p)
-1
drivers/net/ethernet/amd/au1000_eth.c
··· 714 714 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 715 715 snprintf(info->bus_info, sizeof(info->bus_info), "%s %d", DRV_NAME, 716 716 aup->mac_id); 717 - info->regdump_len = 0; 718 717 } 719 718 720 719 static void au1000_set_msglevel(struct net_device *dev, u32 value)
-1
drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c
··· 375 375 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER), 376 376 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID), 377 377 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER)); 378 - drvinfo->n_stats = XGBE_STATS_COUNT; 379 378 } 380 379 381 380 static u32 xgbe_get_msglevel(struct net_device *netdev)
-4
drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c
··· 233 233 sizeof(drvinfo->version)); 234 234 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 235 235 sizeof(drvinfo->bus_info)); 236 - drvinfo->n_stats = 0; 237 - drvinfo->testinfo_len = 0; 238 - drvinfo->regdump_len = atl1c_get_regs_len(netdev); 239 - drvinfo->eedump_len = atl1c_get_eeprom_len(netdev); 240 236 } 241 237 242 238 static void atl1c_get_wol(struct net_device *netdev,
-4
drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c
··· 316 316 strlcpy(drvinfo->fw_version, "L1e", sizeof(drvinfo->fw_version)); 317 317 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 318 318 sizeof(drvinfo->bus_info)); 319 - drvinfo->n_stats = 0; 320 - drvinfo->testinfo_len = 0; 321 - drvinfo->regdump_len = atl1e_get_regs_len(netdev); 322 - drvinfo->eedump_len = atl1e_get_eeprom_len(netdev); 323 319 } 324 320 325 321 static void atl1e_get_wol(struct net_device *netdev,
-1
drivers/net/ethernet/atheros/atlx/atl1.c
··· 3388 3388 sizeof(drvinfo->version)); 3389 3389 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 3390 3390 sizeof(drvinfo->bus_info)); 3391 - drvinfo->eedump_len = ATL1_EEDUMP_LEN; 3392 3391 } 3393 3392 3394 3393 static void atl1_get_wol(struct net_device *netdev,
-4
drivers/net/ethernet/atheros/atlx/atl2.c
··· 2030 2030 strlcpy(drvinfo->fw_version, "L2", sizeof(drvinfo->fw_version)); 2031 2031 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 2032 2032 sizeof(drvinfo->bus_info)); 2033 - drvinfo->n_stats = 0; 2034 - drvinfo->testinfo_len = 0; 2035 - drvinfo->regdump_len = atl2_get_regs_len(netdev); 2036 - drvinfo->eedump_len = atl2_get_eeprom_len(netdev); 2037 2033 } 2038 2034 2039 2035 static void atl2_get_wol(struct net_device *netdev,
-2
drivers/net/ethernet/broadcom/bcm63xx_enet.c
··· 1333 1333 sizeof(drvinfo->version)); 1334 1334 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); 1335 1335 strlcpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info)); 1336 - drvinfo->n_stats = BCM_ENET_STATS_LEN; 1337 1336 } 1338 1337 1339 1338 static int bcm_enet_get_sset_count(struct net_device *netdev, ··· 2596 2597 strncpy(drvinfo->version, bcm_enet_driver_version, 32); 2597 2598 strncpy(drvinfo->fw_version, "N/A", 32); 2598 2599 strncpy(drvinfo->bus_info, "bcm63xx", 32); 2599 - drvinfo->n_stats = BCM_ENETSW_STATS_LEN; 2600 2600 } 2601 2601 2602 2602 static void bcm_enetsw_get_ethtool_stats(struct net_device *netdev,
-1
drivers/net/ethernet/broadcom/bcmsysport.c
··· 287 287 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); 288 288 strlcpy(info->version, "0.1", sizeof(info->version)); 289 289 strlcpy(info->bus_info, "platform", sizeof(info->bus_info)); 290 - info->n_stats = BCM_SYSPORT_STATS_LEN; 291 290 } 292 291 293 292 static u32 bcm_sysport_get_msglvl(struct net_device *dev)
-4
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
··· 1090 1090 bnx2x_fill_fw_str(bp, info->fw_version, sizeof(info->fw_version)); 1091 1091 1092 1092 strlcpy(info->bus_info, pci_name(bp->pdev), sizeof(info->bus_info)); 1093 - info->n_stats = BNX2X_NUM_STATS; 1094 - info->testinfo_len = BNX2X_NUM_TESTS(bp); 1095 - info->eedump_len = bp->common.flash_size; 1096 - info->regdump_len = bnx2x_get_regs_len(dev); 1097 1093 } 1098 1094 1099 1095 static void bnx2x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
-1
drivers/net/ethernet/broadcom/genet/bcmgenet.c
··· 793 793 { 794 794 strlcpy(info->driver, "bcmgenet", sizeof(info->driver)); 795 795 strlcpy(info->version, "v2.0", sizeof(info->version)); 796 - info->n_stats = BCMGENET_STATS_LEN; 797 796 } 798 797 799 798 static int bcmgenet_get_sset_count(struct net_device *dev, int string_set)
-1
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
··· 153 153 strncpy(drvinfo->fw_version, oct->fw_info.liquidio_firmware_version, 154 154 ETHTOOL_FWVERS_LEN); 155 155 strncpy(drvinfo->bus_info, pci_name(oct->pci_dev), 32); 156 - drvinfo->regdump_len = OCT_ETHTOOL_REGDUMP_LEN; 157 156 } 158 157 159 158 static void
-1
drivers/net/ethernet/dec/tulip/de2104x.c
··· 1597 1597 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 1598 1598 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1599 1599 strlcpy(info->bus_info, pci_name(de->pdev), sizeof(info->bus_info)); 1600 - info->eedump_len = DE_EEPROM_SIZE; 1601 1600 } 1602 1601 1603 1602 static int de_get_regs_len(struct net_device *dev)
-3
drivers/net/ethernet/emulex/benet/be_ethtool.c
··· 234 234 235 235 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 236 236 sizeof(drvinfo->bus_info)); 237 - drvinfo->testinfo_len = 0; 238 - drvinfo->regdump_len = 0; 239 - drvinfo->eedump_len = 0; 240 237 } 241 238 242 239 static u32 lancer_cmd_get_file_len(struct be_adapter *adapter, u8 *file_name)
-2
drivers/net/ethernet/freescale/gianfar_ethtool.c
··· 182 182 sizeof(drvinfo->version)); 183 183 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); 184 184 strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info)); 185 - drvinfo->regdump_len = 0; 186 - drvinfo->eedump_len = 0; 187 185 } 188 186 189 187
-2
drivers/net/ethernet/freescale/ucc_geth_ethtool.c
··· 351 351 strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version)); 352 352 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); 353 353 strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info)); 354 - drvinfo->eedump_len = 0; 355 - drvinfo->regdump_len = uec_get_regs_len(netdev); 356 354 } 357 355 358 356 #ifdef CONFIG_PM
-1
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
··· 682 682 drvinfo->bus_info[ETHTOOL_BUSINFO_LEN - 1] = '\0'; 683 683 684 684 strncpy(drvinfo->fw_version, "N/A", ETHTOOL_FWVERS_LEN); 685 - drvinfo->eedump_len = 0; 686 685 } 687 686 688 687 /**
-1
drivers/net/ethernet/ibm/emac/core.c
··· 2204 2204 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 2205 2205 snprintf(info->bus_info, sizeof(info->bus_info), "PPC 4xx EMAC-%d %s", 2206 2206 dev->cell_index, dev->ofdev->dev.of_node->full_name); 2207 - info->regdump_len = emac_ethtool_get_regs_len(ndev); 2208 2207 } 2209 2208 2210 2209 static const struct ethtool_ops emac_ethtool_ops = {
-2
drivers/net/ethernet/intel/e1000/e1000_ethtool.c
··· 559 559 560 560 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 561 561 sizeof(drvinfo->bus_info)); 562 - drvinfo->regdump_len = e1000_get_regs_len(netdev); 563 - drvinfo->eedump_len = e1000_get_eeprom_len(netdev); 564 562 } 565 563 566 564 static void e1000_get_ringparam(struct net_device *netdev,
-2
drivers/net/ethernet/intel/e1000e/ethtool.c
··· 648 648 649 649 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 650 650 sizeof(drvinfo->bus_info)); 651 - drvinfo->regdump_len = e1000_get_regs_len(netdev); 652 - drvinfo->eedump_len = e1000_get_eeprom_len(netdev); 653 651 } 654 652 655 653 static void e1000_get_ringparam(struct net_device *netdev,
-4
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
··· 515 515 sizeof(info->version) - 1); 516 516 strncpy(info->bus_info, pci_name(interface->pdev), 517 517 sizeof(info->bus_info) - 1); 518 - 519 - info->n_stats = fm10k_get_sset_count(dev, ETH_SS_STATS); 520 - 521 - info->regdump_len = fm10k_get_regs_len(dev); 522 518 } 523 519 524 520 static void fm10k_get_pauseparam(struct net_device *dev,
-1
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
··· 1126 1126 sizeof(drvinfo->fw_version)); 1127 1127 strlcpy(drvinfo->bus_info, pci_name(pf->pdev), 1128 1128 sizeof(drvinfo->bus_info)); 1129 - drvinfo->n_priv_flags = I40E_PRIV_FLAGS_STR_LEN; 1130 1129 } 1131 1130 1132 1131 static void i40e_get_ringparam(struct net_device *netdev,
-4
drivers/net/ethernet/intel/igb/igb_ethtool.c
··· 842 842 sizeof(drvinfo->fw_version)); 843 843 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 844 844 sizeof(drvinfo->bus_info)); 845 - drvinfo->n_stats = IGB_STATS_LEN; 846 - drvinfo->testinfo_len = IGB_TEST_LEN; 847 - drvinfo->regdump_len = igb_get_regs_len(netdev); 848 - drvinfo->eedump_len = igb_get_eeprom_len(netdev); 849 845 } 850 846 851 847 static void igb_get_ringparam(struct net_device *netdev,
-2
drivers/net/ethernet/intel/igbvf/ethtool.c
··· 196 196 sizeof(drvinfo->version)); 197 197 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 198 198 sizeof(drvinfo->bus_info)); 199 - drvinfo->regdump_len = igbvf_get_regs_len(netdev); 200 - drvinfo->eedump_len = igbvf_get_eeprom_len(netdev); 201 199 } 202 200 203 201 static void igbvf_get_ringparam(struct net_device *netdev,
-3
drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c
··· 479 479 sizeof(drvinfo->version)); 480 480 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 481 481 sizeof(drvinfo->bus_info)); 482 - drvinfo->n_stats = IXGB_STATS_LEN; 483 - drvinfo->regdump_len = ixgb_get_regs_len(netdev); 484 - drvinfo->eedump_len = ixgb_get_eeprom_len(netdev); 485 482 } 486 483 487 484 static void
-3
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
··· 943 943 944 944 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 945 945 sizeof(drvinfo->bus_info)); 946 - drvinfo->n_stats = IXGBE_STATS_LEN; 947 - drvinfo->testinfo_len = IXGBE_TEST_LEN; 948 - drvinfo->regdump_len = ixgbe_get_regs_len(netdev); 949 946 } 950 947 951 948 static void ixgbe_get_ringparam(struct net_device *netdev,
-1
drivers/net/ethernet/marvell/mv643xx_eth.c
··· 1586 1586 sizeof(drvinfo->version)); 1587 1587 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); 1588 1588 strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info)); 1589 - drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats); 1590 1589 } 1591 1590 1592 1591 static int mv643xx_eth_nway_reset(struct net_device *dev)
-3
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
··· 95 95 (u16) (mdev->dev->caps.fw_ver & 0xffff)); 96 96 strlcpy(drvinfo->bus_info, pci_name(mdev->dev->persist->pdev), 97 97 sizeof(drvinfo->bus_info)); 98 - drvinfo->n_stats = 0; 99 - drvinfo->regdump_len = 0; 100 - drvinfo->eedump_len = 0; 101 98 } 102 99 103 100 static const char mlx4_en_priv_flags[][ETH_GSTRING_LEN] = {
-2
drivers/net/ethernet/neterion/s2io.c
··· 5389 5389 strlcpy(info->driver, s2io_driver_name, sizeof(info->driver)); 5390 5390 strlcpy(info->version, s2io_driver_version, sizeof(info->version)); 5391 5391 strlcpy(info->bus_info, pci_name(sp->pdev), sizeof(info->bus_info)); 5392 - info->regdump_len = XENA_REG_SPACE; 5393 - info->eedump_len = XENA_EEPROM_SPACE; 5394 5392 } 5395 5393 5396 5394 /**
-4
drivers/net/ethernet/neterion/vxge/vxge-ethtool.c
··· 105 105 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 106 106 strlcpy(info->fw_version, vdev->fw_version, sizeof(info->fw_version)); 107 107 strlcpy(info->bus_info, pci_name(vdev->pdev), sizeof(info->bus_info)); 108 - info->regdump_len = sizeof(struct vxge_hw_vpath_reg) 109 - * vdev->no_of_vpath; 110 - 111 - info->n_stats = STAT_LEN; 112 108 } 113 109 114 110 /**
-4
drivers/net/ethernet/octeon/octeon_mgmt.c
··· 1344 1344 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 1345 1345 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); 1346 1346 strlcpy(info->bus_info, "N/A", sizeof(info->bus_info)); 1347 - info->n_stats = 0; 1348 - info->testinfo_len = 0; 1349 - info->regdump_len = 0; 1350 - info->eedump_len = 0; 1351 1347 } 1352 1348 1353 1349 static int octeon_mgmt_get_settings(struct net_device *netdev,
-1
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c
··· 164 164 strlcpy(drvinfo->version, pch_driver_version, sizeof(drvinfo->version)); 165 165 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 166 166 sizeof(drvinfo->bus_info)); 167 - drvinfo->regdump_len = pch_gbe_get_regs_len(netdev); 168 167 } 169 168 170 169 /**
-2
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c
··· 93 93 94 94 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 95 95 sizeof(drvinfo->bus_info)); 96 - drvinfo->regdump_len = NETXEN_NIC_REGS_LEN; 97 - drvinfo->eedump_len = netxen_nic_get_eeprom_len(dev); 98 96 } 99 97 100 98 static int
-2
drivers/net/ethernet/qlogic/qla3xxx.c
··· 1736 1736 sizeof(drvinfo->version)); 1737 1737 strlcpy(drvinfo->bus_info, pci_name(qdev->pdev), 1738 1738 sizeof(drvinfo->bus_info)); 1739 - drvinfo->regdump_len = 0; 1740 - drvinfo->eedump_len = 0; 1741 1739 } 1742 1740 1743 1741 static u32 ql_get_msglevel(struct net_device *ndev)
-7
drivers/net/ethernet/qlogic/qlge/qlge_ethtool.c
··· 415 415 (qdev->fw_rev_id & 0x000000ff)); 416 416 strlcpy(drvinfo->bus_info, pci_name(qdev->pdev), 417 417 sizeof(drvinfo->bus_info)); 418 - drvinfo->n_stats = 0; 419 - drvinfo->testinfo_len = 0; 420 - if (!test_bit(QL_FRC_COREDUMP, &qdev->flags)) 421 - drvinfo->regdump_len = sizeof(struct ql_mpi_coredump); 422 - else 423 - drvinfo->regdump_len = sizeof(struct ql_reg_dump); 424 - drvinfo->eedump_len = 0; 425 418 } 426 419 427 420 static void ql_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)
-1
drivers/net/ethernet/realtek/8139too.c
··· 2388 2388 strlcpy(info->driver, DRV_NAME, sizeof(info->driver)); 2389 2389 strlcpy(info->version, DRV_VERSION, sizeof(info->version)); 2390 2390 strlcpy(info->bus_info, pci_name(tp->pci_dev), sizeof(info->bus_info)); 2391 - info->regdump_len = tp->regs_len; 2392 2391 } 2393 2392 2394 2393 static int rtl8139_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
-3
drivers/net/ethernet/sun/cassini.c
··· 4529 4529 strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver)); 4530 4530 strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version)); 4531 4531 strlcpy(info->bus_info, pci_name(cp->pdev), sizeof(info->bus_info)); 4532 - info->regdump_len = cp->casreg_len < CAS_MAX_REGS ? 4533 - cp->casreg_len : CAS_MAX_REGS; 4534 - info->n_stats = CAS_NUM_STAT_KEYS; 4535 4532 } 4536 4533 4537 4534 static int cas_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
-5
drivers/net/ethernet/tehuti/tehuti.c
··· 2182 2182 strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version)); 2183 2183 strlcpy(drvinfo->bus_info, pci_name(priv->pdev), 2184 2184 sizeof(drvinfo->bus_info)); 2185 - 2186 - drvinfo->n_stats = ((priv->stats_flag) ? ARRAY_SIZE(bdx_stat_names) : 0); 2187 - drvinfo->testinfo_len = 0; 2188 - drvinfo->regdump_len = 0; 2189 - drvinfo->eedump_len = 0; 2190 2185 } 2191 2186 2192 2187 /*
-1
drivers/net/ethernet/ti/cpmac.c
··· 899 899 strlcpy(info->driver, "cpmac", sizeof(info->driver)); 900 900 strlcpy(info->version, CPMAC_VERSION, sizeof(info->version)); 901 901 snprintf(info->bus_info, sizeof(info->bus_info), "%s", "cpmac"); 902 - info->regdump_len = 0; 903 902 } 904 903 905 904 static const struct ethtool_ops cpmac_ethtool_ops = {
-1
drivers/net/ethernet/ti/cpsw.c
··· 1784 1784 strlcpy(info->driver, "cpsw", sizeof(info->driver)); 1785 1785 strlcpy(info->version, "1.0", sizeof(info->version)); 1786 1786 strlcpy(info->bus_info, priv->pdev->name, sizeof(info->bus_info)); 1787 - info->regdump_len = cpsw_get_regs_len(ndev); 1788 1787 } 1789 1788 1790 1789 static u32 cpsw_get_msglevel(struct net_device *ndev)
-1
drivers/net/ethernet/ti/tlan.c
··· 791 791 sizeof(info->bus_info)); 792 792 else 793 793 strlcpy(info->bus_info, "EISA", sizeof(info->bus_info)); 794 - info->eedump_len = TLAN_EEPROM_SIZE; 795 794 } 796 795 797 796 static int tlan_get_eeprom_len(struct net_device *dev)
-1
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
··· 1135 1135 { 1136 1136 strlcpy(ed->driver, DRIVER_NAME, sizeof(ed->driver)); 1137 1137 strlcpy(ed->version, DRIVER_VERSION, sizeof(ed->version)); 1138 - ed->regdump_len = sizeof(u32) * AXIENET_REGS_N; 1139 1138 } 1140 1139 1141 1140 /**
-2
drivers/net/fjes/fjes_ethtool.c
··· 105 105 strlcpy(drvinfo->fw_version, "none", sizeof(drvinfo->fw_version)); 106 106 snprintf(drvinfo->bus_info, sizeof(drvinfo->bus_info), 107 107 "platform:%s", plat_dev->name); 108 - drvinfo->regdump_len = 0; 109 - drvinfo->eedump_len = 0; 110 108 } 111 109 112 110 static int fjes_get_settings(struct net_device *netdev,
-1
drivers/net/usb/asix_common.c
··· 588 588 usbnet_get_drvinfo(net, info); 589 589 strlcpy(info->driver, DRIVER_NAME, sizeof(info->driver)); 590 590 strlcpy(info->version, DRIVER_VERSION, sizeof(info->version)); 591 - info->eedump_len = AX_EEPROM_LEN; 592 591 } 593 592 594 593 int asix_set_mac_address(struct net_device *net, void *p)
-1
drivers/net/usb/dm9601.c
··· 258 258 { 259 259 /* Inherit standard device info */ 260 260 usbnet_get_drvinfo(net, info); 261 - info->eedump_len = DM_EEPROM_LEN; 262 261 } 263 262 264 263 static u32 dm9601_get_link(struct net_device *net)
-1
drivers/net/usb/mcs7830.c
··· 445 445 static void mcs7830_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *drvinfo) 446 446 { 447 447 usbnet_get_drvinfo(net, drvinfo); 448 - drvinfo->regdump_len = mcs7830_get_regs_len(net); 449 448 } 450 449 451 450 static void mcs7830_get_regs(struct net_device *net, struct ethtool_regs *regs, void *data)
-4
drivers/net/usb/sr9800.c
··· 470 470 static void sr_get_drvinfo(struct net_device *net, 471 471 struct ethtool_drvinfo *info) 472 472 { 473 - struct usbnet *dev = netdev_priv(net); 474 - struct sr_data *data = (struct sr_data *)&dev->data; 475 - 476 473 /* Inherit standard device info */ 477 474 usbnet_get_drvinfo(net, info); 478 475 strncpy(info->driver, DRIVER_NAME, sizeof(info->driver)); 479 476 strncpy(info->version, DRIVER_VERSION, sizeof(info->version)); 480 - info->eedump_len = data->eeprom_len; 481 477 } 482 478 483 479 static u32 sr_get_link(struct net_device *net)
-4
drivers/net/vmxnet3/vmxnet3_ethtool.c
··· 214 214 215 215 strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 216 216 sizeof(drvinfo->bus_info)); 217 - drvinfo->n_stats = vmxnet3_get_sset_count(netdev, ETH_SS_STATS); 218 - drvinfo->testinfo_len = 0; 219 - drvinfo->eedump_len = 0; 220 - drvinfo->regdump_len = vmxnet3_get_regs_len(netdev); 221 217 } 222 218 223 219
-1
drivers/net/wireless/ipw2x00/ipw2200.c
··· 10470 10470 vers, date); 10471 10471 strlcpy(info->bus_info, pci_name(p->pci_dev), 10472 10472 sizeof(info->bus_info)); 10473 - info->eedump_len = IPW_EEPROM_IMAGE_SIZE; 10474 10473 } 10475 10474 10476 10475 static u32 ipw_ethtool_get_link(struct net_device *dev)