drm/ttm: use kvcalloc() instead of kvmalloc_array() in ttm_tt v2
authorYang Wang <KevinYang.Wang@amd.com>
Thu, 21 Apr 2022 12:34:42 +0000 (20:34 +0800)
committerChristian König <christian.koenig@amd.com>
Thu, 21 Apr 2022 12:47:30 +0000 (14:47 +0200)
commit8f97344aa04b29acd69e592c3708b9045cf62794
tree789b04551d306c9ec04f233591678e47ec97c7eb
parent9f15930bb2ef9f031d62ffc49629cbae89137733
drm/ttm: use kvcalloc() instead of kvmalloc_array() in ttm_tt v2

simplify programming with existing functions.

v2 (chk): minimal coding style cleanup

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220421123442.1834102-1-KevinYang.Wang@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/ttm_tt.c