Commit b798b1fe authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Dave Airlie
Browse files

drm: simplify kcalloc() call to kzalloc().

Calls to kcalloc() for a single element can be simplified to calls to

Signed-off-by: default avatarRobert P. J. Day <>
Cc: Dave Airlie <>
Cc: Eric Anholt <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarDave Airlie <>
parent 1bcbf394
......@@ -133,7 +133,7 @@ drm_gem_object_alloc(struct drm_device *dev, size_t size)
BUG_ON((size & (PAGE_SIZE - 1)) != 0);
obj = kcalloc(1, sizeof(*obj), GFP_KERNEL);
obj = kzalloc(sizeof(*obj), GFP_KERNEL);
obj->dev = dev;
obj->filp = shmem_file_setup("drm mm object", size, VM_NORESERVE);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment