From: gshahrouzi@gmail.com
To: linux-media@vger.kernel.org
Cc: linux-staging@lists.linux.dev,slongerbeam@gmail.com,p.zabel@pengutronix.de,mchehab@kernel.org,gregkh@linuxfoundation.org,skhan@linuxfoundation.org,kernelmentees@lists.linuxfoundation.org
Subject: [PATCH v2] staging: media: Remove unnecessary braces for single statement block
Date: Tue, 01 Apr 2025 20:10:21 -0700 (PDT) [thread overview]
Message-ID: <67ecaa9d.c80a0220.978d0.8852@mx.google.com> (raw)
[-- 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
next reply other threads:[~2025-04-02 3:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-02 3:10 gshahrouzi [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-02 12:53 [PATCH v2] staging: media: Remove unnecessary braces for single statement block Gabriel Shahrouzi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67ecaa9d.c80a0220.978d0.8852@mx.google.com \
--to=gshahrouzi@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernelmentees@lists.linuxfoundation.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=skhan@linuxfoundation.org \
--cc=slongerbeam@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox