mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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:
parent
663a87763b
commit
2f94469cc0
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user