drm/amdgpu: Simplify cleanup check for FRU sysfs
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 29 Nov 2024 02:50:45 +0000 (08:20 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:49 +0000 (10:26 -0500)
commitedd628ad17d85c4bb29f602224c25f1fa3a645e3
treed1247fccc8fb82c76bedc46ad7666c44f692f691
parente1a34ed9176edddb3b472a977c8a02ee7d67fefb
drm/amdgpu: Simplify cleanup check for FRU sysfs

FRU info is expected to be non-NULL if FRU sys files are created.
Simplify the check.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c