OpenCloudOS-Kernel/drivers/gpu/drm/amd/powerplay
Gustavo A. R. Silva 2f10d82373 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: cd70f3d6e3 ("drm/amd/powerplay: PP/DAL interface changes for dynamic clock switch")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-29 10:57:02 -05:00
..
hwmgr drm/amd/powerplay: Fix missing break in switch 2019-01-29 10:57:02 -05:00
inc Merge branch 'drm-fixes-5.0' of git://people.freedesktop.org/~agd5f/linux into drm-fixes 2019-01-11 07:38:56 +10:00
smumgr drm pull request for 4.21-rc1 2018-12-25 11:48:26 -08:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
amd_powerplay.c drm/amd/powerplay: rv dal-pplib interface refactor powerplay part 2018-12-07 17:53:47 -05:00