Skip to content

Commit

Permalink
media: sun4i-csi: use semicolons rather than commas to separate state…
Browse files Browse the repository at this point in the history
…ments

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 f5071fd commit 835fd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ int sun4i_csi_v4l2_register(struct sun4i_csi *csi)
vdev->lock = &csi->lock;

/* Set a default format */
csi->fmt.pixelformat = sun4i_csi_formats[0].fourcc,
csi->fmt.pixelformat = sun4i_csi_formats[0].fourcc;
csi->fmt.width = CSI_DEFAULT_WIDTH;
csi->fmt.height = CSI_DEFAULT_HEIGHT;
_sun4i_csi_try_fmt(csi, &csi->fmt);
Expand Down

0 comments on commit 835fd61

Please sign in to comment.