UPSTREAM: GPU-DRM: Delete unnecessary checks before drm_property_unreference_blob()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 6 Nov 2015 11:03:46 +0000 (12:03 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 7 Jul 2017 11:09:07 +0000 (19:09 +0800)
commit5dd1f2569f79ff91f1dabb524a2d8f748a7e15b5
tree9f7bd999d7b7cdb1e08842aac2ee8710309c29ff
parent78ea6c7b2190dd35aebaa597cbb0d16e7b8bcc85
UPSTREAM: GPU-DRM: Delete unnecessary checks before drm_property_unreference_blob()

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

This issue was detected by using the Coccinelle software.

Link: http://patchwork.freedesktop.org/patch/msgid/563C8B3E.405@users.sourceforge.net
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit 5f911905054a64cf8c7871fddd33f4af74f07a17)

Change-Id: I599721227294c7cde5fd4f2ef6d5a97212b61b77
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c