From 5a9e30eec8d97ef5d00beaa942b6e2d4dd7d795c Mon Sep 17 00:00:00 2001 From: Andreea-Cristina Bernat Date: Wed, 12 Mar 2014 22:50:01 +0200 Subject: [PATCH] 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 Acked-by: Paul E. McKenney Signed-off-by: Peter P Waskiewicz Jr --- drivers/staging/media/lirc/lirc_imon.c | 4 ++++ drivers/staging/media/lirc/lirc_sasem.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index f2d396cc4a4c..a5b62eec5e21 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 2f366882e9d5..81f90e17e1e6 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; -- 2.39.5