staging: lirc: Add fallthrough comment
authorAndreea-Cristina Bernat <bernat.ada@gmail.com>
Wed, 12 Mar 2014 20:50:01 +0000 (22:50 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Fri, 14 Mar 2014 00:37:23 +0000 (17:37 -0700)
This patch adds fallthrough comments for the cases not preceded by
break or fallthrough comment

Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/media/lirc/lirc_imon.c
drivers/staging/media/lirc/lirc_sasem.c

index f2d396cc4a4c7af83a7be1c60b5ef11e953dd0b5..a5b62eec5e21061abbf29bfd9a5a387b426ea7e1 100644 (file)
@@ -943,13 +943,17 @@ alloc_status_switch:
                usb_free_urb(tx_urb);
        case 6:
                usb_free_urb(rx_urb);
+               /* fall-through */
        case 5:
                if (rbuf)
                        lirc_buffer_free(rbuf);
+               /* fall-through */
        case 4:
                kfree(rbuf);
+               /* fall-through */
        case 3:
                kfree(driver);
+               /* fall-through */
        case 2:
                kfree(context);
                context = NULL;
index 2f366882e9d5723f1e6ba90d79e5f4e82810f23f..81f90e17e1e67f792e4e5d5da6875e4c2d7e7714 100644 (file)
@@ -865,15 +865,20 @@ alloc_status_switch:
                        usb_free_urb(tx_urb);
        case 6:
                usb_free_urb(rx_urb);
+               /* fall-through */
        case 5:
                lirc_buffer_free(rbuf);
+               /* fall-through */
        case 4:
                kfree(rbuf);
+               /* fall-through */
        case 3:
                kfree(driver);
+               /* fall-through */
        case 2:
                kfree(context);
                context = NULL;
+               /* fall-through */
        case 1:
                if (retval == 0)
                        retval = -ENOMEM;