drm/amd/powerplay: Fix missing break in switch
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 25 Jan 2019 21:55:33 +0000 (15:55 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Jan 2019 15:57:02 +0000 (10:57 -0500)
commit2f10d823739680d2477ce34437e8a08a53117f40
treea2dcb68b8de67c1216f6c0f6848bcd28a596fc85
parentafeff4c16edaa6275b903f82b0561406259aa3a3
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: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c