diff options
| author | Gustavo A. R. Silva <[email protected]> | 2019-01-25 21:55:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-01-29 15:57:02 +0000 |
| commit | 2f10d823739680d2477ce34437e8a08a53117f40 (patch) | |
| tree | a2dcb68b8de67c1216f6c0f6848bcd28a596fc85 /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | |
| parent | drm/radeon: check if device is root before getting pci speed caps (diff) | |
| download | kernel-2f10d823739680d2477ce34437e8a08a53117f40.tar.gz kernel-2f10d823739680d2477ce34437e8a08a53117f40.zip | |
drm/amd/powerplay: Fix missing break in switch
Add missing break statement in order to prevent the code from falling
through to the default case.
The resoning for this is that pclk_vol_table is an automatic variable.
So, it makes no sense to update it just before falling through to the
default case and return -EINVAL.
This bug was found thanks to the ongoing efforts to enabling
-Wimplicit-fallthrough.
Fixes: cd70f3d6e3fa ("drm/amd/powerplay: PP/DAL interface changes for dynamic clock switch")
Cc: [email protected]
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions
