Skip to content

Commit 2f94469

Browse files
Xiang Liualexdeucher
authored andcommitted
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>
1 parent 663a877 commit 2f94469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static void aca_banks_generate_cper(struct amdgpu_device *adev,
392392
struct aca_bank_node *node;
393393
struct aca_bank *bank;
394394

395-
if (!adev || !banks || !count) {
395+
if (!banks || !count) {
396396
dev_warn(adev->dev, "fail to generate cper records\n");
397397
return;
398398
}

0 commit comments

Comments
 (0)