Skip to content

Commit

Permalink
drm/exynos: fix unnecessary resource cleanup
Browse files Browse the repository at this point in the history
This patch removes unnecessary drm_mode_config_cleanup call.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
  • Loading branch information
Inki Dae authored and Inki Dae committed Mar 23, 2014
1 parent 8fa04aa commit d2ba65f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/exynos/exynos_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
ret = drm_create_iommu_mapping(dev);
if (ret < 0) {
DRM_ERROR("failed to create iommu mapping.\n");
goto err_crtc;
goto err_free_private;
}

drm_mode_config_init(dev);
Expand Down Expand Up @@ -136,8 +136,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
err_mode_config_cleanup:
drm_mode_config_cleanup(dev);
drm_release_iommu_mapping(dev);
err_crtc:
drm_mode_config_cleanup(dev);
err_free_private:
kfree(private);

return ret;
Expand Down

0 comments on commit d2ba65f

Please sign in to comment.