Skip to content

Commit

Permalink
media: exynos4-is: use semicolons rather than commas to separate stat…
Browse files Browse the repository at this point in the history
…ements

Replace commas with semicolons.  Commas introduce unnecessary
variability in the code structure and are hard to see.  What is done
is essentially described by the following Coccinelle semantic patch
(http://coccinelle.lip6.fr/):

// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
JuliaLawall authored and mchehab committed Nov 16, 2020
1 parent 107b2c9 commit abeb97e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/media/platform/exynos4-is/fimc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,13 @@ static int fimc_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift)
while (sh--) {
u32 tmp = 1 << sh;
if (src >= tar * tmp) {
*shift = sh, *ratio = tmp;
*shift = sh;
*ratio = tmp;
return 0;
}
}
*shift = 0, *ratio = 1;
*shift = 0;
*ratio = 1;
return 0;
}

Expand Down

0 comments on commit abeb97e

Please sign in to comment.