drm/msm: Delete unnecessary checks before drm_gem_object_unreference_unlocked()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 13 Jul 2016 17:15:35 +0000 (19:15 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:34 +0000 (10:29 -0400)
commite73a8569731aebd21832b34bf7ce8121dec2e98d
tree50baafbc3ede3a81006eb050298ce800944e677e
parent851dd75d64dbfc9a97d5109659e82e95d6bbe5bf
drm/msm: Delete unnecessary checks before drm_gem_object_unreference_unlocked()

The drm_gem_object_unreference_unlocked() function tests whether
its argument is NULL and then returns immediately.
Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c
drivers/gpu/drm/msm/msm_fb.c
drivers/gpu/drm/msm/msm_gem.c