Commit af6b1f11 authored by Luben Tuikov's avatar Luben Tuikov Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: Return from switch early for EEPROM I2C address



[ Upstream commit 8782007b ]

As soon as control->i2c_address is set, return; remove the "break;" from the
switch--it is unnecessary. This mimics what happens when for some cases in the
switch, we call helper functions with "return <helper function>".

Remove final function "return true;" to indicate that the switch is final and
terminal, and that there should be no code after the switch.

Cc: Candice Li <candice.li@amd.com>
Cc: Kent Russell <kent.russell@amd.com>
Cc: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
Reviewed-by: default avatarAlex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Stable-dep-of: e0409021 ("drm/amdgpu: Update EEPROM I2C address for smu v13_0_0")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a3049c9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment