staging: media: Remove unnecessary braces from if statement
PATCH 1/1 staging: media: Remove unnecessary braces from if statement
Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).
Signed-off-by Ayush Kumar <[email protected]>
--- 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
@@ -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
Quoted 4 lines · Ayush Kumar
Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).
Signed-off-by Ayush Kumar <[email protected]>---
Reviewed-by Frank Li <[email protected]>
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@@ -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
Quoted 7 lines · Frank Li
Quoted 4 lines · Ayush Kumar
Adhering to Linux kernel coding style guidelines (Chapter 3: Indentation).
Signed-off-by Ayush Kumar <[email protected]>---
Reviewed-by Frank Li <[email protected]>
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@@ -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