[PATCH] GPU-DRM-OMAP: Delete unnecessary checks before two function calls

2016-07-21 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 22 Jul 2016 08:28:31 +0200 The following functions test whether their argument is NULL and then return immediately. * backlight_device_unregister * drm_gem_object_unreference_unlocked Thus the test around the calls is not needed. This issue was detected by using

[PATCH] GPU-DRM-OMAP: Delete unnecessary checks before two function calls

2015-02-04 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 4 Feb 2015 22:22:36 +0100 The functions framebuffer_release() and vunmap() perform also input parameter validation. Thus the test around their calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive