From: "Robert P. J. Day" <[email protected]> Calls to kcalloc() for a single element can be simplified to calls to kzalloc().
Signed-off-by: Robert P. J. Day <[email protected]> Cc: Dave Airlie <[email protected]> Cc: Eric Anholt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> --- drivers/gpu/drm/drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/gpu/drm/drm_gem.c~drm-simplify-kcalloc-call-to-kzalloc drivers/gpu/drm/drm_gem.c --- a/drivers/gpu/drm/drm_gem.c~drm-simplify-kcalloc-call-to-kzalloc +++ a/drivers/gpu/drm/drm_gem.c @@ -133,7 +133,7 @@ drm_gem_object_alloc(struct drm_device * 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); _ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
