]> git.baikalelectronics.ru Git - kernel.git/commit
GPU-DRM: Delete an unnecessary check before drm_property_unreference_blob()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 5 Jul 2015 19:55:10 +0000 (21:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 6 Jul 2015 06:53:19 +0000 (08:53 +0200)
commit2369039ebe4d801e22b736fc71a1ea6e20c01e09
tree6b949ef6cf1c331c1adebd5c5e602223e99822d1
parentf18d50dce918ea4b62155ef9754dc7ac58a4cc83
GPU-DRM: Delete an unnecessary check before drm_property_unreference_blob()

The drm_property_unreference_blob() 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>
Reviewed-by: Zhao Junwang <zhjwpku@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c