drm/amdgpu: Use a single loop
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 4 Jun 2021 03:58:19 +0000 (23:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:25:33 +0000 (00:25 -0400)
commite2e04041a25feff31faf5768caca2fef120209cb
tree92f2122cb42b480325039354919954ae4d4c9b5a
parent1d9d2ca85b32605ac9c74c8fa42d0c1cfbe019d4
drm/amdgpu: Use a single loop

In smu_v11_0_i2c_transmit() use a single loop to
transmit bytes, instead of two nested loops.

Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alexander Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c