drm/i915: Tidy slab cache allocations
authorTvrtko Ursulin <[email protected]>
Wed, 2 Nov 2016 15:14:59 +0000 (15:14 +0000)
committerTvrtko Ursulin <[email protected]>
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 <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]> (v1)
Cc: Joonas Lahtinen <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem.c