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>
This commit is contained in:

committed by
David S. Miller

parent
ae23051820
commit
47ea032533
@@ -5389,8 +5389,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->bus_info, pci_name(sp->pdev), sizeof(info->bus_info));
|
||||
info->regdump_len = XENA_REG_SPACE;
|
||||
info->eedump_len = XENA_EEPROM_SPACE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user