aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-08-05 16:22:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:04:48 -0400
commit473d80247332b818caf6d25ed3eaaa10d3dfcfb7 (patch)
treecd2d42ef642b77b4709104791560948d29c94ca5 /drivers/media/video/cx23885
parent6c2d4dd139de417d18151b98c157aa35387038a3 (diff)
V4L/DVB: drivers/media/video: Adjust confusing if indentation
In cx23885/cx23885-video.c, cx88/cx88-video.c, davinci/vpif_capture.c, and davinci/vpif_display.c, group the aligned code into a single if branch. In saa7134/saa7134-video.c, outdent the code following the if. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r--drivers/media/video/cx23885/cx23885-video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c
index da66e5f8d91d..5aadc1d1956e 100644
--- a/drivers/media/video/cx23885/cx23885-video.c
+++ b/drivers/media/video/cx23885/cx23885-video.c
@@ -1165,9 +1165,10 @@ static int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i)
1165 i->type = V4L2_INPUT_TYPE_CAMERA; 1165 i->type = V4L2_INPUT_TYPE_CAMERA;
1166 strcpy(i->name, iname[INPUT(n)->type]); 1166 strcpy(i->name, iname[INPUT(n)->type]);
1167 if ((CX23885_VMUX_TELEVISION == INPUT(n)->type) || 1167 if ((CX23885_VMUX_TELEVISION == INPUT(n)->type) ||
1168 (CX23885_VMUX_CABLE == INPUT(n)->type)) 1168 (CX23885_VMUX_CABLE == INPUT(n)->type)) {
1169 i->type = V4L2_INPUT_TYPE_TUNER; 1169 i->type = V4L2_INPUT_TYPE_TUNER;
1170 i->std = CX23885_NORMS; 1170 i->std = CX23885_NORMS;
1171 }
1171 return 0; 1172 return 0;
1172} 1173}
1173 1174