* [PATCH v2] staging: media: Remove unnecessary braces for single statement block
@ 2025-04-02 3:10 gshahrouzi
0 siblings, 0 replies; 2+ messages in thread
From: gshahrouzi @ 2025-04-02 3:10 UTC (permalink / raw)
To: linux-media
Cc: linux-staging, slongerbeam, p.zabel, mchehab, gregkh, skhan,
kernelmentees
[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]
>From b1b00ec8defda73d871d02dd606286404e42ac00 Mon Sep 17 00:00:00 2001
From: Gabriel Shahrouzi <gshahrouzi@gmail.com>
Date: Tue, 1 Apr 2025 20:22:22 -0400
Subject: [PATCH v2] staging: media: Remove unnecessary braces for single
statement block
Remove unnecessary braces in single statement block to comply with kernel
coding style.
Signed-off-by: Gabriel Shahrouzi <gshahrouzi@gmail.com>
---
Changes since v2:
* Add missing author
* Fix title of email
---
drivers/staging/media/imx/imx-media-of.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/media/imx/imx-media-of.c b/drivers/staging/media/imx/imx-media-of.c
index bb28daa4d713..7413551052ae 100644
--- a/drivers/staging/media/imx/imx-media-of.c
+++ b/drivers/staging/media/imx/imx-media-of.c
@@ -57,9 +57,8 @@ int imx_media_add_of_subdevs(struct imx_media_dev *imxmd,
of_node_put(csi_np);
if (ret) {
/* unavailable or already added is not an error */
- if (ret == -ENODEV || ret == -EEXIST) {
+ if (ret == -ENODEV || ret == -EEXIST)
continue;
- }
/* other error, can't continue */
return ret;
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] staging: media: Remove unnecessary braces for single statement block
@ 2025-04-02 12:53 Gabriel Shahrouzi
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Shahrouzi @ 2025-04-02 12:53 UTC (permalink / raw)
To: linux-media
Cc: linux-staging, slongerbeam, p.zabel, mchehab, gregkh, skhan,
kernelmentees, Gabriel Shahrouzi
Remove unnecessary braces in single statement block to comply with kernel
coding style.
Signed-off-by: Gabriel Shahrouzi <gshahrouzi@gmail.com>
---
Changes since v2:
* Add missing author
* Fix title of email
Changes since v3:
* Resend using git send-email to fix formatting issues in email body.
---
drivers/staging/media/imx/imx-media-of.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git drivers/staging/media/imx/imx-media-of.c drivers/staging/media/imx/imx-media-of.c
index bb28daa4d713..7413551052ae 100644
--- drivers/staging/media/imx/imx-media-of.c
+++ drivers/staging/media/imx/imx-media-of.c
@@ -57,9 +57,8 @@ int imx_media_add_of_subdevs(struct imx_media_dev *imxmd,
of_node_put(csi_np);
if (ret) {
/* unavailable or already added is not an error */
- if (ret == -ENODEV || ret == -EEXIST) {
+ if (ret == -ENODEV || ret == -EEXIST)
continue;
- }
/* other error, can't continue */
return ret;
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-02 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02 3:10 [PATCH v2] staging: media: Remove unnecessary braces for single statement block gshahrouzi
-- strict thread matches above, loose matches on Subject: below --
2025-04-02 12:53 Gabriel Shahrouzi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).