]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drivers/net: get rid of unnecessary initializations in .get_drvinfo()
authorIvan Vecera <ivecera@redhat.com>
Thu, 15 Oct 2015 19:28:52 +0000 (21:28 +0200)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:18:28 +0000 (18:18 -0400)
commitf2906899f398caaef495be610ae32b860c25a626
treeb7bdad819f6cfab15522fc1df90f8638bf5e56ac
parent29c4c8532b3c2063590335c1708d1b1042105613
drivers/net: get rid of unnecessary initializations in .get_drvinfo()

Orabug: 22066196

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>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c