Thread (3 messages) read the whole thread 3 messages, 2 authors, 2026-03-27

Re: [PATCH] staging: media: Remove unnecessary braces from if statement

From: Frank Li <Frank.li@nxp.com>
Date: 2026-03-27 14:49:46
Also in: imx, linux-media, linux-staging, lkml

On Tue, Nov 25, 2025 at 04:15:17PM -0500, Frank Li wrote:
On Tue, Nov 25, 2025 at 08:23:31PM +0000, Ayush Kumar wrote:
quoted
Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).

Signed-off-by: Ayush Kumar <redacted>
---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Applied, thank! It should be in media-committers/next branch

Frank
quoted
 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
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help