]> git.baikalelectronics.ru Git - kernel.git/commit
GPU-DRM-GMA500: Delete unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 22 Jul 2016 08:30:30 +0000 (10:30 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 Jul 2016 09:31:42 +0000 (11:31 +0200)
commit16ba7cac5f525c1f8ef8e4f53ee3e39d72f25fc4
tree6adf5f48ab9a743a1236ae14e9aaa59540723a3e
parent7dd3b4af119e18b43cfe51ea6e368fbb51a6f0d7
GPU-DRM-GMA500: Delete unnecessary checks before two function calls

The functions pci_dev_put() and psb_intel_i2c_destroy() test whether
their argument is NULL and then return immediately.
Thus the tests around their calls are not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/f1a0fd83-4320-f3db-e1bb-3b9832a4429f@users.sourceforge.net
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
drivers/gpu/drm/gma500/cdv_intel_lvds.c
drivers/gpu/drm/gma500/psb_drv.c
drivers/gpu/drm/gma500/psb_intel_lvds.c