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>
This commit is contained in:
parent
18ce30c226
commit
5a9e30eec8
2 changed files with 9 additions and 0 deletions
|
@ -943,13 +943,17 @@ alloc_status_switch:
|
||||||
usb_free_urb(tx_urb);
|
usb_free_urb(tx_urb);
|
||||||
case 6:
|
case 6:
|
||||||
usb_free_urb(rx_urb);
|
usb_free_urb(rx_urb);
|
||||||
|
/* fall-through */
|
||||||
case 5:
|
case 5:
|
||||||
if (rbuf)
|
if (rbuf)
|
||||||
lirc_buffer_free(rbuf);
|
lirc_buffer_free(rbuf);
|
||||||
|
/* fall-through */
|
||||||
case 4:
|
case 4:
|
||||||
kfree(rbuf);
|
kfree(rbuf);
|
||||||
|
/* fall-through */
|
||||||
case 3:
|
case 3:
|
||||||
kfree(driver);
|
kfree(driver);
|
||||||
|
/* fall-through */
|
||||||
case 2:
|
case 2:
|
||||||
kfree(context);
|
kfree(context);
|
||||||
context = NULL;
|
context = NULL;
|
||||||
|
|
|
@ -865,15 +865,20 @@ alloc_status_switch:
|
||||||
usb_free_urb(tx_urb);
|
usb_free_urb(tx_urb);
|
||||||
case 6:
|
case 6:
|
||||||
usb_free_urb(rx_urb);
|
usb_free_urb(rx_urb);
|
||||||
|
/* fall-through */
|
||||||
case 5:
|
case 5:
|
||||||
lirc_buffer_free(rbuf);
|
lirc_buffer_free(rbuf);
|
||||||
|
/* fall-through */
|
||||||
case 4:
|
case 4:
|
||||||
kfree(rbuf);
|
kfree(rbuf);
|
||||||
|
/* fall-through */
|
||||||
case 3:
|
case 3:
|
||||||
kfree(driver);
|
kfree(driver);
|
||||||
|
/* fall-through */
|
||||||
case 2:
|
case 2:
|
||||||
kfree(context);
|
kfree(context);
|
||||||
context = NULL;
|
context = NULL;
|
||||||
|
/* fall-through */
|
||||||
case 1:
|
case 1:
|
||||||
if (retval == 0)
|
if (retval == 0)
|
||||||
retval = -ENOMEM;
|
retval = -ENOMEM;
|
||||||
|
|
Loading…
Add table
Reference in a new issue