diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-21 16:47:46 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-21 16:47:46 +0000 |
commit | 232a32e4823887e382af8b96a5f21e7ab3891e21 (patch) | |
tree | 2ec340d3a00ac7303123acdd5812d744b9896b77 /linux/drivers/media/video/gspca/sunplus.c | |
parent | 6bd143668c399af17edddaaff09227d2217e6dd6 (diff) | |
download | mediapointer-dvb-s2-232a32e4823887e382af8b96a5f21e7ab3891e21.tar.gz mediapointer-dvb-s2-232a32e4823887e382af8b96a5f21e7ab3891e21.tar.bz2 |
Use dst_type field instead of type_flags
From: Julia Lawall <julia@diku.dk>
It seems from other code that it is the dst_type field rather than the
type_flags field that contains values of the form DST_TYPE_IS...
The type_flags field contains values of the form DST_TYPE_HAS...
The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@ struct dst_state E; @@
(
*E.type_flags ==
\( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
|
*E.type_flags !=
\( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
)
// </smpl>
CC: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/sunplus.c')
0 files changed, 0 insertions, 0 deletions