projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffe74d7
)
i915_gem: Convert kmem_cache_alloc(...GFP_ZERO) to kmem_cache_zalloc
author
Joe Perches
<joe@perches.com>
Thu, 29 Aug 2013 20:11:07 +0000
(13:11 -0700)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 3 Sep 2013 17:17:56 +0000
(19:17 +0200)
The helper exists, might as well use it instead of __GFP_ZERO.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index
2d1cb10
..
6131305
100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-212,7
+212,7
@@
i915_gem_get_aperture_ioctl(struct drm_device *dev, void *data,
void *i915_gem_object_alloc(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
- return kmem_cache_
alloc(dev_priv->slab, GFP_KERNEL | __GFP_ZERO
);
+ return kmem_cache_
zalloc(dev_priv->slab, GFP_KERNEL
);
}
void i915_gem_object_free(struct drm_i915_gem_object *obj)