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:
parent
c084481735
commit
e9196d2385
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue