]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Replace tmp_adev with hive in amdgpu_pci_slot_reset
authorCe Sun <cesun102@amd.com>
Wed, 9 Apr 2025 11:53:11 +0000 (19:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Apr 2025 20:55:55 +0000 (16:55 -0400)
commit732c6cefc1ecfc8de5d7a2029480798655d979d8
treed7e5d879e047a16d12c7d60fe30580658e8b171c
parent39938a8ed979e398faa3791a47e282c82bcc6f04
drm/amdgpu: Replace tmp_adev with hive in amdgpu_pci_slot_reset

Checking hive is more readable.

The following smatch warning:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:6820 amdgpu_pci_slot_reset()
warn: iterator used outside loop: 'tmp_adev'

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c