* [PATCH] drm/i915/lvds: Remove dead code from failing case
@ 2014-02-13 18:56 Damien Lespiau
2014-02-13 19:04 ` Paulo Zanoni
0 siblings, 1 reply; 3+ messages in thread
From: Damien Lespiau @ 2014-02-13 18:56 UTC (permalink / raw)
To: intel-gfx
Coverity points out that, if we end up in the 'failed' label, that's
precisely because we couldn't retrieve a fixed mode (ie fixed_mode is
NULL) and then "if (fixed_mode)" is always false.
Remove that dead code.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
drivers/gpu/drm/i915/intel_lvds.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 6341a88..3984608 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -1125,8 +1125,6 @@ failed:
DRM_DEBUG_KMS("No LVDS modes found, disabling.\n");
drm_connector_cleanup(connector);
drm_encoder_cleanup(encoder);
- if (fixed_mode)
- drm_mode_destroy(dev, fixed_mode);
kfree(lvds_encoder);
kfree(lvds_connector);
return;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915/lvds: Remove dead code from failing case
2014-02-13 18:56 [PATCH] drm/i915/lvds: Remove dead code from failing case Damien Lespiau
@ 2014-02-13 19:04 ` Paulo Zanoni
2014-02-13 20:11 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Paulo Zanoni @ 2014-02-13 19:04 UTC (permalink / raw)
To: Damien Lespiau; +Cc: Intel Graphics Development
2014-02-13 16:56 GMT-02:00 Damien Lespiau <damien.lespiau@intel.com>:
> Coverity points out that, if we end up in the 'failed' label, that's
> precisely because we couldn't retrieve a fixed mode (ie fixed_mode is
> NULL) and then "if (fixed_mode)" is always false.
>
> Remove that dead code.
>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
> ---
> drivers/gpu/drm/i915/intel_lvds.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
> index 6341a88..3984608 100644
> --- a/drivers/gpu/drm/i915/intel_lvds.c
> +++ b/drivers/gpu/drm/i915/intel_lvds.c
> @@ -1125,8 +1125,6 @@ failed:
> DRM_DEBUG_KMS("No LVDS modes found, disabling.\n");
> drm_connector_cleanup(connector);
> drm_encoder_cleanup(encoder);
> - if (fixed_mode)
> - drm_mode_destroy(dev, fixed_mode);
> kfree(lvds_encoder);
> kfree(lvds_connector);
> return;
> --
> 1.8.3.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Paulo Zanoni
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915/lvds: Remove dead code from failing case
2014-02-13 19:04 ` Paulo Zanoni
@ 2014-02-13 20:11 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2014-02-13 20:11 UTC (permalink / raw)
To: Paulo Zanoni; +Cc: Intel Graphics Development
On Thu, Feb 13, 2014 at 05:04:48PM -0200, Paulo Zanoni wrote:
> 2014-02-13 16:56 GMT-02:00 Damien Lespiau <damien.lespiau@intel.com>:
> > Coverity points out that, if we end up in the 'failed' label, that's
> > precisely because we couldn't retrieve a fixed mode (ie fixed_mode is
> > NULL) and then "if (fixed_mode)" is always false.
> >
> > Remove that dead code.
> >
> > Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
>
> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-13 20:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 18:56 [PATCH] drm/i915/lvds: Remove dead code from failing case Damien Lespiau
2014-02-13 19:04 ` Paulo Zanoni
2014-02-13 20:11 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox