diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-02-13 18:56:15 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-13 21:11:15 +0100 |
commit | 7fb4a3a31ffc8c7fa69258e92336ccf78ca5e2b5 (patch) | |
tree | f455b937ba5a7f6c1f95f886c485a539c4484665 /drivers/gpu/drm/i915/intel_lvds.c | |
parent | 02f5eebb63ad52c832a81109d68718df6cb1155e (diff) | |
download | op-kernel-dev-7fb4a3a31ffc8c7fa69258e92336ccf78ca5e2b5.zip op-kernel-dev-7fb4a3a31ffc8c7fa69258e92336ccf78ca5e2b5.tar.gz |
drm/i915/lvds: Remove dead code from failing case
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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 2 |
1 files changed, 0 insertions, 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; |