]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: remove redundant checks for a null fb pointer
authorColin Ian King <colin.king@canonical.com>
Tue, 10 Dec 2019 14:23:49 +0000 (14:23 +0000)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Dec 2019 16:19:28 +0000 (18:19 +0200)
commit023163de9832853f66f9febb4c2d167bcf4d912a
tree72a53a0f137c0c0ef3931ced1c005a0f53a26956
parentf4ac74b7c895d66ba688a32bfbef0a37dd42efc1
drm/i915: remove redundant checks for a null fb pointer

A prior check and return when pointer fb is null makes
subsequent null checks on fb redundant.  Remove the redundant
null checks.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210142349.333171-1-colin.king@canonical.com
drivers/gpu/drm/i915/i915_debugfs.c