aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-07-21 13:23:25 -0400
committerSean Paul <seanpaul@chromium.org>2016-07-21 14:06:33 -0400
commite8d3ef02787fc72996cfb423180dc79764c239fa (patch)
treee447785e782eed63f31bccc0da42f3cac73060ac
parent29d79ede4edc1661e24b918acbc9c42a4cd4fcd0 (diff)
GPU-DRM-Exynos: Delete an unnecessary check before the function call "vunmap"
The vunmap() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/a5a79711-10a3-e304-a897-892ebdf2ff9f@users.sourceforge.net
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fbdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
index 67dcd6831291..fb49443bfd32 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
@@ -269,8 +269,7 @@ static void exynos_drm_fbdev_destroy(struct drm_device *dev,
269 struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem; 269 struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem;
270 struct drm_framebuffer *fb; 270 struct drm_framebuffer *fb;
271 271
272 if (exynos_gem->kvaddr) 272 vunmap(exynos_gem->kvaddr);
273 vunmap(exynos_gem->kvaddr);
274 273
275 /* release drm framebuffer and real buffer */ 274 /* release drm framebuffer and real buffer */
276 if (fb_helper->fb && fb_helper->fb->funcs) { 275 if (fb_helper->fb && fb_helper->fb->funcs) {