diff options
author | 2022-09-05 15:56:24 +0800 | |
---|---|---|
committer | 2022-09-13 14:32:58 -0400 | |
commit | 2f4ca1ba6c9e7a4c2eea2ed8a378817ec1946f4f (patch) | |
tree | ead2a8bf4dbdc65ac070ca6fd647e23fd899762b /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | |
parent | drm/amdgpu: cleanup coding style in amdgpu_sync.c file (diff) | |
download | linux-2f4ca1ba6c9e7a4c2eea2ed8a378817ec1946f4f.tar.gz linux-2f4ca1ba6c9e7a4c2eea2ed8a378817ec1946f4f.tar.bz2 linux-2f4ca1ba6c9e7a4c2eea2ed8a378817ec1946f4f.zip |
drm/amdgpu: cleanup coding style in amdgpu_amdkfd.c
Fix everything checkpatch.pl complained about in amdgpu_amdkfd.c
Signed-off-by: Jingyu Wang <jingyuwang_vip@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c index 091415a4abf0..4f5bd96000ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT /* * Copyright 2014 Advanced Micro Devices, Inc. * @@ -130,6 +131,7 @@ static void amdgpu_amdkfd_reset_work(struct work_struct *work) kfd.reset_work); struct amdgpu_reset_context reset_context; + memset(&reset_context, 0, sizeof(reset_context)); reset_context.method = AMD_RESET_METHOD_NONE; |