drm/msm: Delete an unnecessary check before drm_gem_object_unreference()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 13 Jul 2016 17:29:19 +0000 (19:29 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:35 +0000 (10:29 -0400)
commit0a677125d0ff726ed3d75ab311cf54674bf512bc
treea03cee37dbb6d1bb16006fc18a59b4777fee7ffe
parente73a8569731aebd21832b34bf7ce8121dec2e98d
drm/msm: Delete an unnecessary check before drm_gem_object_unreference()

The drm_gem_object_unreference() function tests whether its argument
is NULL and then returns immediately.
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>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem.c