[media] drivers/media/video/s5p-fimc/fimc-capture.c: adjust double test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 12 Jan 2012 20:49:28 +0000 (17:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 18 Jan 2012 00:53:34 +0000 (22:53 -0200)
commitb1aa60892ecc1ba03185e7dfed99cc9202ef03b7
treee268ae2b720c250e04a616d4cf2c4b47f1182227
parent53e5ab946a1773f589b97df6ae1cc72b52656a7d
[media] drivers/media/video/s5p-fimc/fimc-capture.c: adjust double test

Rewrite a duplicated test to test the correct value

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

// <smpl>
@@
expression E;
@@

(
* E
  || ... || E
|
* E
  && ... && E
)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c