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 <elfring@users.sourceforge.net>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Markus Elfring 2014-11-19 17:33:32 +01:00 committed by Dave Airlie
parent c084481735
commit e9196d2385
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}