aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2023-03-23 05:46:41 +0000
committerAlex Deucher <[email protected]>2023-03-31 15:18:32 +0000
commit8782007b5f5795f118c5167f46d8c8142abcc92f (patch)
tree5c708ac9045a9269e09813d1e6d9b4844b44a401 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amdgpu: Remove second moot switch to set EEPROM I2C address (diff)
downloadkernel-8782007b5f5795f118c5167f46d8c8142abcc92f.tar.gz
kernel-8782007b5f5795f118c5167f46d8c8142abcc92f.zip
drm/amdgpu: Return from switch early for EEPROM I2C address
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 <[email protected]> Cc: Kent Russell <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions