Skip to contentSkip to conversation

drm/i915: Remove return; at the end of a function returning void

PATCH In review Damien Lespiau 3 participants 4 messages Jun 3, 2014

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

PATCH 1/1 drm/i915: Remove return; at the end of a function returning void

intel_dsi_init() lost its return value in:

Damien Lespiau <[email protected]>
Date: Wed May 28 12:30:56 2014 +0100

drm/i915: Make intel_dsi_init() return void

However, I left a return; at the end of the function and, as Jani noticed, it looks silly.

---
 drivers/gpu/drm/i915/intel_dsi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/intel_dsi.c +0 -2
index 9d789b3..bd89de5 100644
@@ -759,6 +759,4 @@ err:
 	drm_encoder_cleanup(&intel_encoder->base);
 	kfree(intel_dsi);
 	kfree(intel_connector);
-
-	return;
 }
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw
Quoted 9 lines · Damien Lespiau

intel_dsi_init() lost its return value in:

Damien Lespiau <[email protected]>
Date: Wed May 28 12:30:56 2014 +0100

drm/i915: Make intel_dsi_init() return void

However, I left a return; at the end of the function and, as Jani noticed, it looks silly.

Thanks. R-b and all that if Daniel needs it.

Quoted 20 lines
---
 drivers/gpu/drm/i915/intel_dsi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/intel_dsi.c +0 -2
index 9d789b3..bd89de5 100644
@@ -759,6 +759,4 @@ err:
 	drm_encoder_cleanup(&intel_encoder->base);
 	kfree(intel_dsi);
 	kfree(intel_connector);
-
-	return;
 }
Signature · 1 line
1.8.3.1
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
#2 lore raw
Quoted 6 lines · Jani Nikula
Quoted 5 lines · Damien Lespiau

intel_dsi_init() lost its return value in:

Damien Lespiau <[email protected]>
Date: Wed May 28 12:30:56 2014 +0100

Quoted 6 lines
Quoted 4 lines

drm/i915: Make intel_dsi_init() return void

However, I left a return; at the end of the function and, as Jani noticed, it looks silly.

Thanks. R-b and all that if Daniel needs it.

If it's not too late to rewrite history, please consider squashing it with:
drm/i915: Make intel_dsi_init() return void

Signature · 1 line
Damien
#3 lore raw
Quoted 9 lines · Damien Lespiau
Quoted 8 lines · Jani Nikula
Quoted 7 lines · Damien Lespiau

intel_dsi_init() lost its return value in:

Damien Lespiau <[email protected]>
Date: Wed May 28 12:30:56 2014 +0100

drm/i915: Make intel_dsi_init() return void

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

However, I left a return; at the end of the function and, as Jani noticed, it looks silly.

Thanks. R-b and all that if Daniel needs it.

If it's not too late to rewrite history, please consider squashing it with:
drm/i915: Make intel_dsi_init() return void

History is rectified.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch