diff options
author | yipechai <YiPeng.Chai@amd.com> | 2022-02-23 11:05:43 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-02-23 14:26:35 -0500 |
commit | 29c9b6cd581de79ef848a50d1c9f06cf567bfd78 (patch) | |
tree | 58f1c15afad71e5e8e14ecf0edb4b154f64704e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | 0c41b9b561dbd81dd3955c4c8b59d55244a80100 (diff) | |
download | linux-29c9b6cd581de79ef848a50d1c9f06cf567bfd78.tar.gz linux-29c9b6cd581de79ef848a50d1c9f06cf567bfd78.tar.bz2 linux-29c9b6cd581de79ef848a50d1c9f06cf567bfd78.zip |
drm/amdgpu: Fixed warning reported by kernel test robot
Fixed warning reported by kernel test robot:
1.warning: variable 'ras_obj' is used uninitialized
whenever '||' condition is true.
Signed-off-by: yipechai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 0e89175ee0a9..b53abc15a830 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -2400,7 +2400,7 @@ bool amdgpu_ras_is_poison_mode_supported(struct amdgpu_device *adev) int amdgpu_ras_block_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block) { - struct amdgpu_ras_block_object *ras_obj; + struct amdgpu_ras_block_object *ras_obj = NULL; struct amdgpu_ras *con = amdgpu_ras_get_context(adev); unsigned long ue_count, ce_count; int r; |