]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerKamal Mostafa <kamal@canonical.com>
Wed, 13 Jul 2016 15:59:32 +0000 (08:59 -0700)
commit7c4e8c706c63c26e743b8fd4937d9683c0390dfb
tree9642cf3b0c4a827f23d6233a3c97d95e7a1209f1
parente33b44e3cbb707a94f4aef0efa75568a77ba9675
GPU-DRM: Delete unnecessary checks before drm_property_unreference_blob()

BugLink: http://bugs.launchpad.net/bugs/1599109
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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
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)
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c