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>
此提交包含在:
@@ -1141,8 +1141,6 @@ static void greth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in
|
||||
strlcpy(info->version, "revision: 1.0", sizeof(info->version));
|
||||
strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info));
|
||||
strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
|
||||
info->eedump_len = 0;
|
||||
info->regdump_len = sizeof(struct greth_regs);
|
||||
}
|
||||
|
||||
static void greth_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *p)
|
||||
|
新增問題並參考
封鎖使用者