summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/udl
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-19 17:33:32 +0100
committerDave Airlie <airlied@redhat.com>2014-11-21 12:16:35 +1000
commite9196d238597da0189b035f37c473c411275b0dd (patch)
tree8b5df9ab0893fa44cf53c2854fc4772caf77b15e /drivers/gpu/drm/udl
parentc08448173545428ed9761308fbaf90f8be7498c5 (diff)
downloadblackbird-op-linux-e9196d238597da0189b035f37c473c411275b0dd.tar.gz
blackbird-op-linux-e9196d238597da0189b035f37c473c411275b0dd.zip
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>
Diffstat (limited to 'drivers/gpu/drm/udl')
-rw-r--r--drivers/gpu/drm/udl/udl_gem.c3
1 files changed, 1 insertions, 2 deletions
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);
}
OpenPOWER on IntegriCloud