diff options
author | Maninder Singh | 2015-06-26 09:58:50 +0200 |
---|---|---|
committer | Alex Deucher | 2015-06-29 17:21:50 +0200 |
commit | 5f0b34cc72aa627fd28230be3de469321e0af03e (patch) | |
tree | 1958a9eb2a733983cca7569ea76512b31727bbea /drivers/gpu | |
parent | drm/radeon: fix adding all VAs to the freed list on remove v2 (diff) | |
download | kernel-qcow2-linux-5f0b34cc72aa627fd28230be3de469321e0af03e.tar.gz kernel-qcow2-linux-5f0b34cc72aa627fd28230be3de469321e0af03e.tar.xz kernel-qcow2-linux-5f0b34cc72aa627fd28230be3de469321e0af03e.zip |
drm/amdgpu: use kzalloc for allocating one thing
Use kzalloc rather than kcalloc(1.. for allocating
one thing.
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Reviewed-by: Christian Konig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index d3706a498293..dd3415d2e45d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -674,7 +674,7 @@ static int amdgpu_ttm_tt_populate(struct ttm_tt *ttm) return 0; if (gtt && gtt->userptr) { - ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL); + ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL); if (!ttm->sg) return -ENOMEM; |