drm/amdgpu: Remove redundant check of adev

There is no need to check adev for sure.

Signed-off-by: Xiang Liu <xiang.liu@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Xiang Liu 2025-02-19 12:27:27 +08:00 committed by Alex Deucher
parent 663a87763b
commit 2f94469cc0

View File

@ -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;
}