]> 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)
commit81a441378d6e5b030af5429fe2ca1763de0f053a
tree6836db96b7400c25bd0a7d1010d4a0e7b387fbfb
parented6dee41927b6acad9f209899f360d4167f3f452
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