summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2026-08-01 21:09:53 +0200
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-09-08 15:07:04 +0200
commitaffd2694728284a633a5dbf939d9ed06d2d3fc22 (patch)
treef07629911d6c6380384852f47d61b0e244888886
parent1179929b3abd4adb6ca7fae91d649c64a7293aca (diff)
downloadlinux-next-affd2694728284a633a5dbf939d9ed06d2d3fc22.tar.gz
linux-next-affd2694728284a633a5dbf939d9ed06d2d3fc22.zip
media: marvell: cafe: drop unneeded semicolon
When a function-like macro expands to an expression, that expression doesn't need a semicolon after it. All uses have been verified to have their own semicolons. This was found using the following Coccinelle semantic patch: @r@ identifier i : script:ocaml() { String.lowercase_ascii i = i }; expression e; @@ *#define i(...) e; Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
-rw-r--r--drivers/media/platform/marvell/cafe-driver.c2
-rw-r--r--drivers/media/platform/marvell/mcam-core.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/marvell/cafe-driver.c b/drivers/media/platform/marvell/cafe-driver.c
index 22034df6cba9..13d8faaabb50 100644
--- a/drivers/media/platform/marvell/cafe-driver.c
+++ b/drivers/media/platform/marvell/cafe-driver.c
@@ -127,7 +127,7 @@ struct cafe_camera {
* Debugging and related.
*/
#define cam_err(cam, fmt, arg...) \
- dev_err(&(cam)->pdev->dev, fmt, ##arg);
+ dev_err(&(cam)->pdev->dev, fmt, ##arg)
#define cam_warn(cam, fmt, arg...) \
dev_warn(&(cam)->pdev->dev, fmt, ##arg);
diff --git a/drivers/media/platform/marvell/mcam-core.c b/drivers/media/platform/marvell/mcam-core.c
index b8360d37000a..c1e8a2a3012d 100644
--- a/drivers/media/platform/marvell/mcam-core.c
+++ b/drivers/media/platform/marvell/mcam-core.c
@@ -224,11 +224,11 @@ static void mcam_buffer_done(struct mcam_camera *cam, int frame,
* Debugging and related.
*/
#define cam_err(cam, fmt, arg...) \
- dev_err((cam)->dev, fmt, ##arg);
+ dev_err((cam)->dev, fmt, ##arg)
#define cam_warn(cam, fmt, arg...) \
- dev_warn((cam)->dev, fmt, ##arg);
+ dev_warn((cam)->dev, fmt, ##arg)
#define cam_dbg(cam, fmt, arg...) \
- dev_dbg((cam)->dev, fmt, ##arg);
+ dev_dbg((cam)->dev, fmt, ##arg)
/*