]> git.baikalelectronics.ru Git - kernel.git/commit
GPU-DRM: Replace a kzalloc() call by kcalloc() in drm_legacy_addbufs_agp()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 19 Sep 2016 15:24:20 +0000 (17:24 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Sep 2016 11:24:27 +0000 (13:24 +0200)
commit727a898eaba5dbd62f289091e47eaec6c1e33841
tree6836db96b7400c25bd0a7d1010d4a0e7b387fbfb
parent47f31cb0866515b15b2d3dcbfb7057a32072e95e
GPU-DRM: Replace a kzalloc() call by kcalloc() in drm_legacy_addbufs_agp()

The script "checkpatch.pl" can point information out like the following.

WARNING: Prefer kcalloc over kzalloc with multiply

Thus fix the affected source code place.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/606c22f3-5da5-2e84-783d-bfe5289b4a01@users.sourceforge.net
drivers/gpu/drm/drm_bufs.c