drm/etnaviv: Delete unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 22 Jul 2016 13:56:15 +0000 (15:56 +0200)
committerSean Paul <seanpaul@chromium.org>
Fri, 22 Jul 2016 17:51:31 +0000 (13:51 -0400)
commit8c6e6188703d81c2b926566009901d21a8fdb94d
tree1f702c95cf286343d4fa0c6cbdfe962dfcc137e2
parent0bc329976bc178aacf78ca6e3de8084e8e7eb5e4
drm/etnaviv: Delete unnecessary checks before two function calls

The functions drm_gem_object_unreference_unlocked() and vunmap() perform
also input parameter validation.
Thus the tests around their calls are not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[seanpaul tweaked subject]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/9638cd74-ffc5-d9ee-a40c-9b60e860ad8b@users.sourceforge.net
drivers/gpu/drm/etnaviv/etnaviv_gem.c