Skip to contentSkip to conversation

staging: media: Remove unnecessary braces from if statement

PATCH Applied Ayush Kumar 2 participants 3 messages Nov 25, 2025 – Mar 27

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: media: Remove unnecessary braces from if statement

Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).

---
 drivers/staging/media/imx/imx-media-of.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/imx/imx-media-of.c +1 -2
index bb28daa4d713..7413551052ae 100644
@@ -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;
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Ayush Kumar

Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).

---

Quoted 21 lines
 drivers/staging/media/imx/imx-media-of.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/imx/imx-media-of.c +1 -3
index bb28daa4d713..7413551052ae 100644
@@ -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

maintainer Applied
#2 lore raw
Quoted 7 lines · Frank Li
Quoted 4 lines · Ayush Kumar

Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).

---

Applied, thank! It should be in media-committers/next branch

Frank

Quoted 22 lines
Quoted 22 lines
 drivers/staging/media/imx/imx-media-of.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/imx/imx-media-of.c +1 -3
index bb28daa4d713..7413551052ae 100644
@@ -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