drm/amdgpu: Use kvzalloc() to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Aug 2023 09:51:16 +0000 (11:51 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:26:47 +0000 (15:26 -0400)
commit415b7ba36a788dd2496a605f3fc992c793afd406
tree03454e004fc2491f45609ed303525991b014de69
parent5f5c75bf1687d492d35fb37819508a270ba7a8f8
drm/amdgpu: Use kvzalloc() to simplify code

kvzalloc() can be used instead of kvmalloc() + memset() + explicit NULL
assignments.

It is less verbose and more future proof.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c