diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-10-08 09:34:50 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-09 14:44:39 -0400 |
commit | 201a4eb9dc960b6c081936e0990e289959707996 (patch) | |
tree | f16b731687fac7a8bbc7bc4b006d5e94e997fe18 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 562f150fb93b44884f467f531b18cb0b8fdb2ff4 (diff) |
amd/amdgpu_ctx: Use struct_size() helper and kmalloc() (v2)
Make use of the new struct_size() helper instead of the offsetof() idiom.
Also, use kmalloc() instead of kcalloc().
v2: squash in kzalloc fix
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions