]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: fix missing break in switch statement for format->cpp[0] case 4
authorColin Ian King <colin.king@canonical.com>
Wed, 10 Jun 2020 11:58:04 +0000 (12:58 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Jun 2020 07:05:31 +0000 (09:05 +0200)
commit3616d972b15a6ec2fc776bac8190a6701c1f048a
treeab9132e3a6a63df4f5fc9c45abf66bd51bd5da41
parent34f411b043bea93dc8f14848481f192a5ae8ce30
drm/ast: fix missing break in switch statement for format->cpp[0] case 4

Currently the switch statement for format->cpp[0] value 4 assigns
color_index which is never read again and then falls through to the
default case and returns. This looks like a missing break statement
bug. Fix this by adding a break statement.

Addresses-Coverity: ("Unused value")
Fixes: 4f582f6e7218 ("drm/ast: Split ast_set_vbios_mode_info()")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200610115804.1132338-1-colin.king@canonical.com
drivers/gpu/drm/ast/ast_mode.c