]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b9fd4aaa05cd87280f4a17fd58838050c51d356
tree1f702c95cf286343d4fa0c6cbdfe962dfcc137e2
parent3456d77100bd79b8493a529473e6bffe6241f861
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