Skip to contentSkip to conversation

drm: Remove 80-column line in drm_mode_object.c

PATCH Applied Shayenne da Luz Moura 2 participants 2 messages Oct 31, 2018 – Nov 1, 2018

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

PATCH v2 1/1 drm: Remove 80-column line in drm_mode_object.c

Break line after NULL to decrease the line size.

---
Changes in v2:
- Remove aditional variable added in v1 and add a line break

 drivers/gpu/drm/drm_mode_object.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_mode_object.c +2 -1
index be8b754eaf60..cd9bc0ce9be0 100644
@@ -38,7 +38,8 @@ int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj,
 	int ret;
 
 	mutex_lock(&dev->mode_config.idr_mutex);
-	ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL, 1, 0, GFP_KERNEL);
+	ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL,
+			1, 0, GFP_KERNEL);
 	if (ret >= 0) {
 		/*
 		 * Set up the object linking under the protection of the idr
Signature · 1 line
2.19.1
#1 lore raw
Quoted 7 lines · Shayenne da Luz Moura

Break line after NULL to decrease the line size.

---
Changes in v2:
- Remove aditional variable added in v1 and add a line break

Applied, thanks.
-Daniel

Quoted 27 lines
 drivers/gpu/drm/drm_mode_object.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_mode_object.c +2 -1
index be8b754eaf60..cd9bc0ce9be0 100644
@@ -38,7 +38,8 @@ int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj,
 	int ret;
 
 	mutex_lock(&dev->mode_config.idr_mutex);
-	ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL, 1, 0, GFP_KERNEL);
+	ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL,
+			1, 0, GFP_KERNEL);
 	if (ret >= 0) {
 		/*
 		 * Set up the object linking under the protection of the idr
Signature · 8 lines
2.19.1

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20181031174424.odljb6obj25wm47d%40smtp.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch