OSDN Git Service

drm: Replace kzalloc with kcalloc
authorHarsha Sharma <harshasharmaiitr@gmail.com>
Fri, 13 Oct 2017 07:37:47 +0000 (13:07 +0530)
committerSean Paul <seanpaul@chromium.org>
Fri, 13 Oct 2017 19:49:03 +0000 (15:49 -0400)
commit4b947b1c5a26666effcf657428600be2123ca206
treede2735560bc8dde5437866e619646c65d1a2b871
parent9205281cb369a5b2d348e011dd908de81b40e0bf
drm: Replace kzalloc with kcalloc

Prefer kcalloc over kzalloc to allocate an array.
This patch fixes checkcpatch issue.

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171013073747.29877-1-harshasharmaiitr@gmail.com
Link: https://patchwork.freedesktop.org/patch/msgid/20171013073747.29877-1-harshasharmaiitr@gmail.com
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/drm_plane_helper.c