]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 May 2018 21:29:56 +0000 (22:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 May 2018 10:26:32 +0000 (11:26 +0100)
commit3d100c90c74033dec0bf58d305f6e35269d216a2
treefbc2265f182c2057758333bae9362a9c16d5e3c7
parent431a2de5920c1ab773d44f2fbf97b52c44f7f86f
drm/i915/gtt: Tidy up duplicate branches in gen8_gmch_probe()

Following commit 1f083f8ebf0f ("drm/i915: nuke the duplicated stolen
discovery"), the if-else-chain for determining the GTT size is redundant
with the !chv branches all being the same.

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
References: 1f083f8ebf0f ("drm/i915: nuke the duplicated stolen discovery")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180503212956.3948-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c