diff options
author | Andreea-Cristina Bernat <bernat.ada@gmail.com> | 2014-03-12 20:50:01 (GMT) |
---|---|---|
committer | Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> | 2014-03-14 00:37:23 (GMT) |
commit | 5a9e30eec8d97ef5d00beaa942b6e2d4dd7d795c (patch) | |
tree | 306813bf0fda12a58b99ca8f13e971a4a0fa2331 /drivers/staging/media | |
parent | 18ce30c226c065601e5ba153095574450a056e06 (diff) | |
download | linux-5a9e30eec8d97ef5d00beaa942b6e2d4dd7d795c.tar.xz |
staging: lirc: Add fallthrough comment
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>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/lirc/lirc_imon.c | 4 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_sasem.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index f2d396c..a5b62ee 100644 --- a/drivers/staging/media/lirc/lirc_imon.c +++ b/drivers/staging/media/lirc/lirc_imon.c @@ -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; diff --git a/drivers/staging/media/lirc/lirc_sasem.c b/drivers/staging/media/lirc/lirc_sasem.c index 2f36688..81f90e1 100644 --- a/drivers/staging/media/lirc/lirc_sasem.c +++ b/drivers/staging/media/lirc/lirc_sasem.c @@ -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; |