]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Slightly simplify base_addr_show()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 21 Dec 2025 15:13:48 +0000 (16:13 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 10 Jan 2026 19:21:52 +0000 (14:21 -0500)
commit9858810e62ca6a85bd2e7795a92e00a4ffa1c545
treebe92695917144b3abb2fe2c263413e549e444e38
parent96e97a562d067a6d867862db79864cc66aae99c2
drm/amdgpu: Slightly simplify base_addr_show()

sysfs_emit_at() never returns a negative error code. It returns 0 or the
number of characters written in the buffer.

Remove the useless tests. This simplifies the logic and saves a few lines
of code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c