drm/amdgpu/gfx: refine fw hdr check fuction
authorLikun Gao <Likun.Gao@amd.com>
Mon, 31 May 2021 06:16:56 +0000 (14:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:53 +0000 (10:43 -0400)
commit7edda6749fb76ce84d7c0b2a9858be384eeecbf7
tree99dfdfa9592013f3fdc0e76b0989a5072cde60f0
parent619c94c3b5494a1c0654fde415083a589d3f0048
drm/amdgpu/gfx: refine fw hdr check fuction

The return value of function amdgpu_ucode_hdr_version
doesn't make sense, so change it to return true when
fw header version is match with passed in parameters.

Signed-off-by: Wenhui Sheng <Wenhui.Sheng@amd.com>
Signed-off-by: Likun Gao <Likun.Gao@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_ucode.c