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)
commitf3417d703f18b2bfe180e28cd65f44b540546d29
tree72a53a0f137c0c0ef3931ced1c005a0f53a26956
parent7b0bcead187fb3afb45fd052316f9eb967ef1986
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