diff options
author | Maninder Singh <maninder1.s@samsung.com> | 2015-06-19 09:35:23 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-06-29 11:21:39 -0400 |
commit | 69ee2410238e6ea6fd5d0a91b04510bba8abc7b5 (patch) | |
tree | c905ba63bfcbef9e33afb3828ed88500f80b11c5 /drivers/gpu/drm/radeon/radeon_ttm.c | |
parent | e922cfb1c410d8cb200a08f1b2a527d92d95480a (diff) | |
download | op-kernel-dev-69ee2410238e6ea6fd5d0a91b04510bba8abc7b5.zip op-kernel-dev-69ee2410238e6ea6fd5d0a91b04510bba8abc7b5.tar.gz |
drm/radeon: use kzalloc for allocating one thing
Use kzalloc for allocating one thing rather than
kcalloc(1...
The semantic patch that makes this change is as follows:
// <smpl>
@@
@@
- kcalloc(1,
+ kzalloc(
...)
// </smpl>
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ttm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index edafd3c..06ac59f 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -719,7 +719,7 @@ static int radeon_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; |