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
@@ -287,7 +287,6 @@ static void bcm_sysport_get_drvinfo(struct net_device *dev,
|
||||
strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
|
||||
strlcpy(info->version, "0.1", sizeof(info->version));
|
||||
strlcpy(info->bus_info, "platform", sizeof(info->bus_info));
|
||||
info->n_stats = BCM_SYSPORT_STATS_LEN;
|
||||
}
|
||||
|
||||
static u32 bcm_sysport_get_msglvl(struct net_device *dev)
|
||||
|
Reference in New Issue
Block a user