linux/drivers/net/ehea
Julia Lawall 5ee2124524 drivers/net: remove duplicate structure field initialization
The definitions of vnet_ops and ehea_netdev_ops have initializations of a
local function and eth_change_mtu for their respective ndo_change_mtu
fields.  This change uses only the local function.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
identifier I, s, fld;
position p0,p;
expression E;
@@

struct I s =@p0 { ... .fld@p = E, ...};

@s@
identifier I, s, r.fld;
position r.p0,p;
expression E;
@@

struct I s =@p0 { ... .fld@p = E, ...};

@script:python@
p0 << r.p0;
fld << r.fld;
ps << s.p;
pr << r.p;
@@

if int(ps[0].line)!=int(pr[0].line) or int(ps[0].column)!=int(pr[0].column):
  cocci.print_main(fld,p0)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-09-22 14:00:09 -07:00
..
ehea.h ehea: Fix napi list corruption on ifconfig down 2009-08-04 11:48:39 -07:00
ehea_ethtool.c ehea: fix ethtool checkpatch complaints 2008-02-03 04:25:56 -08:00
ehea_hcall.h
ehea_hw.h ehea: fix ehea.h checkpatch complaints 2008-02-03 04:25:55 -08:00
ehea_main.c drivers/net: remove duplicate structure field initialization 2009-09-22 14:00:09 -07:00
ehea_phyp.c net/ehea: use consistant type 2009-01-06 10:47:16 -08:00
ehea_phyp.h ehea: fix phyp checkpatch complaints 2008-02-03 04:25:57 -08:00
ehea_qmr.c ehea: Fix mem allocations which require page alignment 2009-01-21 14:45:33 -08:00
ehea_qmr.h ehea: Detect 16GB hugepages for firmware restriction 2008-10-27 14:49:55 -04:00
Makefile