]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: tidy up gen8_init_scratch
authorMatthew Auld <matthew.auld@intel.com>
Wed, 27 Apr 2016 12:19:25 +0000 (13:19 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 27 Apr 2016 13:16:56 +0000 (16:16 +0300)
commit64c050dbaeb8a03fe3cd3eaa4197cd9e64ffe405
tree0a49939ff3433856b4292041872428aee48647a7
parenta0a6d4ffd2adc76c192ebe7ef89b81e3f2f4a078
drm/i915: tidy up gen8_init_scratch

Prefer a goto teardown path to do all the required cleanup.

v2:
(Joonas Lahtinen)
  - remove NULL assignments
  - rename goto labels

Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Dave Gordon <david.s.gordon@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461759565-12086-1-git-send-email-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c