Tag: 5345a5ab513b3438bab7d5b02c02d9bde064209e

drm/virtgpu: Delete unnecessary checks before drm_gem_object_unreference_unlocked()

Author: Markus Elfring <elfring@users.sourceforge.net> 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 Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/5e3dafff-72bb-e616-e84a-368f78fa66b1@users.sourceforge.net — drivers/gpu/drm/virtio/virtgpu_display.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) …

Continue reading