]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/i915: Tidy slab cache allocations
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 2 Nov 2016 15:14:59 +0000 (15:14 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 3 Nov 2016 13:52:57 +0000 (13:52 +0000)
commita933568eb61d6c0b12af4264ae1ba316447a2189
tree3b8f293132fd127aa5bf88607c5678aa2b2c077e
parentdfc5148fb3f935936e47b55f270cf10fcaf08487
drm/i915: Tidy slab cache allocations

We can use the preferred KMEM_CACHE helper for brevity.

Also simplifiy error unwind by only setting the ENOMEM
error code once.

v2: Add forgotten changes. (Joonas Lahtinen)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> (v1)
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1478099699-28652-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_gem.c