summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2018-08-07 13:59:20 +0200
committerMauro Carvalho Chehab2018-08-08 16:57:14 +0200
commit40e431112c63296a6130810ab62a5fe73953f074 (patch)
tree56ca7db38a329a88ce40745e2e01bb5661a3f312 /drivers/staging/media
parentmedia: vivid: shut up warnings due to a non-trivial logic (diff)
downloadkernel-qcow2-linux-40e431112c63296a6130810ab62a5fe73953f074.tar.gz
kernel-qcow2-linux-40e431112c63296a6130810ab62a5fe73953f074.tar.xz
kernel-qcow2-linux-40e431112c63296a6130810ab62a5fe73953f074.zip
media: cleanup fall-through comments
As Ian pointed out, adding a '-' to the fallthrough seems to meet the regex requirements at level 3 of the warning, at least when the comment fits into a single line. So, replace by a single line the comments that were broken into multiple lines just to make gcc -Wimplicit-fallthrough=3 happy. Suggested-by: Ian Arkver <ian.arkver.dev@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/imx/imx-media-csi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c
index b7ffd231c64b..cd2c291e1e94 100644
--- a/drivers/staging/media/imx/imx-media-csi.c
+++ b/drivers/staging/media/imx/imx-media-csi.c
@@ -460,8 +460,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
passthrough_cycles = incc->cycles;
break;
}
- /* for non-passthrough RGB565 (CSI-2 bus) */
- /* Falls through */
+ /* fallthrough - non-passthrough RGB565 (CSI-2 bus) */
default:
burst_size = (image.pix.width & 0xf) ? 8 : 16;
passthrough_bits = 16;