Skip to contentSkip to conversation

drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement blocks."

PATCH In review Vitor Massaru Iha 2 participants 2 messages Oct 30, 2017

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

PATCH 1/1 drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement blocks."

---
 drivers/gpu/drm/arm/hdlcd_crtc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/arm/hdlcd_crtc.c +1 -2
index 72b22b805412..5a5427bbd70e 100644
@@ -317,9 +317,8 @@ static struct drm_plane *hdlcd_plane_init(struct drm_device *drm)
 				       formats, ARRAY_SIZE(formats),
 				       NULL,
 				       DRM_PLANE_TYPE_PRIMARY, NULL);
-	if (ret) {
+	if (ret)
 		return ERR_PTR(ret);
-	}
 
 	drm_plane_helper_add(plane, &hdlcd_plane_helper_funcs);
 	hdlcd->plane = plane;
Signature · 6 lines
2.13.6

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Acked-by on v1 1/1
#1 lore raw

Hi Vitor,

Thanks for the patch!

I will pull the patch and send it to David Airlie in this weeks' pull request.

Best regards,
Liviu

Quoted 23 lines · Vitor Massaru Iha
---
 drivers/gpu/drm/arm/hdlcd_crtc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/arm/hdlcd_crtc.c +1 -2
index 72b22b805412..5a5427bbd70e 100644
@@ -317,9 +317,8 @@ static struct drm_plane *hdlcd_plane_init(struct drm_device *drm)
 				       formats, ARRAY_SIZE(formats),
 				       NULL,
 				       DRM_PLANE_TYPE_PRIMARY, NULL);
-	if (ret) {
+	if (ret)
 		return ERR_PTR(ret);
-	}
 
 	drm_plane_helper_add(plane, &hdlcd_plane_helper_funcs);
 	hdlcd->plane = plane;
Signature · 1 line
2.13.6
Signature · 12 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel