diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-12 12:12:36 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-05 14:20:37 -0500 |
commit | 657f600397927c302e11c32fa2c162bbc7ef75ed (patch) | |
tree | e66d6b92c3310f753e4ebf21d242bdc27821235f /drivers/gpu | |
parent | fa2549800c84aecb7a9559cdb3978865d1d50513 (diff) |
drm/radeon/r300: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Notice that in this particular case, I replaced "Pass through." with
"Fall through.", which is what GCC is expecting to find.
Addresses-Coverity-ID: 114734 ("Missing break in switch")
Addresses-Coverity-ID: 114735 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 21161aa8acbf..652126fd6dd4 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -814,7 +814,7 @@ static int r300_packet0_check(struct radeon_cs_parser *p, | |||
814 | ((idx_value >> 21) & 0xF)); | 814 | ((idx_value >> 21) & 0xF)); |
815 | return -EINVAL; | 815 | return -EINVAL; |
816 | } | 816 | } |
817 | /* Pass through. */ | 817 | /* Fall through. */ |
818 | case 6: | 818 | case 6: |
819 | track->cb[i].cpp = 4; | 819 | track->cb[i].cpp = 4; |
820 | break; | 820 | break; |
@@ -965,7 +965,7 @@ static int r300_packet0_check(struct radeon_cs_parser *p, | |||
965 | return -EINVAL; | 965 | return -EINVAL; |
966 | } | 966 | } |
967 | /* The same rules apply as for DXT3/5. */ | 967 | /* The same rules apply as for DXT3/5. */ |
968 | /* Pass through. */ | 968 | /* Fall through. */ |
969 | case R300_TX_FORMAT_DXT3: | 969 | case R300_TX_FORMAT_DXT3: |
970 | case R300_TX_FORMAT_DXT5: | 970 | case R300_TX_FORMAT_DXT5: |
971 | track->textures[i].cpp = 1; | 971 | track->textures[i].cpp = 1; |