linux/drivers/media
Julia Lawall bd0db8c7ad V4L/DVB: drivers/media/dvb/frontends: remove duplicate structure field initialization
The read_status field is initialized twice to the same value.

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: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-08-02 15:29:18 -03:00
..
common V4L/DVB: xc5000, rework xc_write_reg 2010-08-02 15:29:10 -03:00
dvb V4L/DVB: drivers/media/dvb/frontends: remove duplicate structure field initialization 2010-08-02 15:29:18 -03:00
IR V4L/DVB: IR: add empty lirc pseudo-keymap 2010-08-02 15:18:02 -03:00
radio V4L/DVB: media/radio: fix copy_to_user to user handling 2010-08-02 15:28:51 -03:00
video V4L/DVB: hdpvr: Fixes probing function 2010-08-02 15:28:34 -03:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00