Skip to content

Commit edf6a05

Browse files
drm/sun4i: sun6i_mipi_dsi: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. Fix the following warning (Building: multi_v7_defconfig arm): drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c: In function ‘sun6i_dsi_transfer’: drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:993:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (msg->rx_len == 1) { ^ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:998:2: note: here default: ^~~~~~~ Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
1 parent 06264ad commit edf6a05

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ static ssize_t sun6i_dsi_transfer(struct mipi_dsi_host *host,
993993
ret = sun6i_dsi_dcs_read(dsi, msg);
994994
break;
995995
}
996+
/* Else, fall through */
996997

997998
default:
998999
ret = -EINVAL;

0 commit comments

Comments
 (0)