[media] zoran: annotate switch fall through
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 12:02:13 +0000 (09:02 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 12:02:13 +0000 (09:02 -0300)
There are two cases here that it does a switch fall through.
Annotate it, in order to shut up gcc warnings.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/zoran/zoran_driver.c

index 180f3d7af3e1d1426a9d8a9675e6e71304326679..a11cb501c550049fe8b91bd464402006bbe2ba6b 100644 (file)
@@ -534,6 +534,7 @@ static int zoran_v4l_queue_frame(struct zoran_fh *fh, int num)
                                KERN_WARNING
                                "%s: %s - queueing buffer %d in state DONE!?\n",
                                ZR_DEVNAME(zr), __func__, num);
+                       /* fall through */
                case BUZ_STATE_USER:
                        /* since there is at least one unused buffer there's room for at least
                         * one more pend[] entry */
@@ -693,6 +694,7 @@ static int zoran_jpg_queue_frame(struct zoran_fh *fh, int num,
                                KERN_WARNING
                                "%s: %s - queing frame in BUZ_STATE_DONE state!?\n",
                                ZR_DEVNAME(zr), __func__);
+                       /* fall through */
                case BUZ_STATE_USER:
                        /* since there is at least one unused buffer there's room for at
                         *least one more pend[] entry */