]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/pm: remove redundant tools_size check
authorBhavin Sharma <bhavin.sharma@siliconsignals.io>
Thu, 14 Nov 2024 15:11:12 +0000 (20:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 14:38:12 +0000 (09:38 -0500)
commit6ecccc093ec439c04d62b40bda76240389d104a8
tree3fdd4e321c8a0e0191d4f8946401ac8aa94b3002
parent2abf2f7032df4c4e7f6cf7906da59d0e614897d6
drm/amd/pm: remove redundant tools_size check

The check for tools_size being non-zero is redundant as tools_size is
explicitly set to a non-zero value (0x19000). Removing the if condition
simplifies the code without altering functionality.

Signed-off-by: Bhavin Sharma <bhavin.sharma@siliconsignals.io>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c