android_kernel_xiaomi_sm8350/drivers/infiniband/hw/nes
Julia Lawall bdf643816a RDMA/nes: Remove duplicate .ndo_set_mac_address field initialization
The definition of nes_netdev_ops has initializations of a local function
and eth_mac_addr for its ndo_set_mac_address field.  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: Roland Dreier <rolandd@cisco.com>
2009-09-24 10:59:34 -07:00
..
Kconfig RDMA/nes: Use LRO 2008-04-29 13:46:54 -07:00
Makefile
nes_cm.c RDMA/nes: Rework the disconn routine for terminate and flushing 2009-09-05 20:36:39 -07:00
nes_cm.h RDMA/nes: Implement Terminate Packet 2009-09-05 20:36:38 -07:00
nes_context.h RDMA/nes: Update copyright to new legal entity and year 2009-03-06 15:12:10 -08:00
nes_hw.c RDMA/nes: Use flush mechanism to set status for wqe in error 2009-09-05 20:36:38 -07:00
nes_hw.h RDMA/nes: Use flush mechanism to set status for wqe in error 2009-09-05 20:36:38 -07:00
nes_nic.c RDMA/nes: Remove duplicate .ndo_set_mac_address field initialization 2009-09-24 10:59:34 -07:00
nes_user.h RDMA/nes: Update copyright to new legal entity and year 2009-03-06 15:12:10 -08:00
nes_utils.c RDMA/nes: Implement Terminate Packet 2009-09-05 20:36:38 -07:00
nes_verbs.c RDMA/nes: Map MTU to IB_MTU_* and correctly report link state 2009-09-05 20:36:39 -07:00
nes_verbs.h RDMA/nes: Use flush mechanism to set status for wqe in error 2009-09-05 20:36:38 -07:00
nes.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
nes.h RDMA/nes: Implement Terminate Packet 2009-09-05 20:36:38 -07:00