From: Markus Elfring Date: Wed, 19 Nov 2014 16:33:32 +0000 (+0100) Subject: drm/udl: Deletion of an unnecessary check before the function call "vunmap" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9196d238597da0189b035f37c473c411275b0dd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/udl: Deletion of an unnecessary check before the function call "vunmap" The vunmap() function performes 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 Reviewed-by: Thierry Reding Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/udl/udl_gem.c b/drivers/gpu/drm/udl/udl_gem.c index 692d6f21f1bc..cd3482de5cab 100644 --- a/drivers/gpu/drm/udl/udl_gem.c +++ b/drivers/gpu/drm/udl/udl_gem.c @@ -184,8 +184,7 @@ void udl_gem_vunmap(struct udl_gem_object *obj) return; } - if (obj->vmapping) - vunmap(obj->vmapping); + vunmap(obj->vmapping); udl_gem_put_pages(obj); }