mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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
This commit is contained in:
parent
29d79ede4e
commit
e8d3ef0278
1 changed files with 1 additions and 2 deletions
|
@ -269,8 +269,7 @@ static void exynos_drm_fbdev_destroy(struct drm_device *dev,
|
|||
struct exynos_drm_gem *exynos_gem = exynos_fbd->exynos_gem;
|
||||
struct drm_framebuffer *fb;
|
||||
|
||||
if (exynos_gem->kvaddr)
|
||||
vunmap(exynos_gem->kvaddr);
|
||||
vunmap(exynos_gem->kvaddr);
|
||||
|
||||
/* release drm framebuffer and real buffer */
|
||||
if (fb_helper->fb && fb_helper->fb->funcs) {
|
||||
|
|
Loading…
Reference in a new issue