drm/amdgpu: Remove redundant check of adev
Subsystems (2)
PATCH 1/1 drm/amdgpu: Remove redundant check of adev
There is no need to check adev for sure.
Signed-off-by Xiang Liu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c +1 -1
@@ -392,7 +392,7 @@ static void aca_banks_generate_cper(struct amdgpu_device *adev,struct aca_bank_node *node;struct aca_bank *bank; -if (!adev || !banks || !count) { +if (!banks || !count) {dev_warn (adev->dev,"fail to generate cper records\n" );return ; }
Signature · 1 line
2.34.1
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Yang Wang <[email protected]>
Best Regards,
Kevin
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Xiang Liu
Sent: Wednesday, February 19, 2025 12:37
To: [email protected]
Cc: [email protected]; Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Liu, Xiang(Dean) <[email protected]>
Subject: [PATCH] drm/amdgpu: Remove redundant check of adev
There is no need to check adev for sure.
Signed-off-by Xiang Liu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c +1 -1
@@ -392,7 +392,7 @@ static void aca_banks_generate_cper(struct amdgpu_device *adev,struct aca_bank_node *node;struct aca_bank *bank; -if (!adev || !banks || !count) { +if (!banks || !count) {dev_warn (adev->dev,"fail to generate cper records\n" );return ; }
--
2.34.1