提交 5a9e30ee 编写于 作者: A Andreea-Cristina Bernat 提交者: Peter P Waskiewicz Jr

staging: lirc: Add fallthrough comment

This patch adds fallthrough comments for the cases not preceded by
break or fallthrough comment
Signed-off-by: NAndreea-Cristina Bernat <bernat.ada@gmail.com>
Acked-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: NPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
上级 18ce30c2
......@@ -943,13 +943,17 @@ static int imon_probe(struct usb_interface *interface,
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;
......
......@@ -865,15 +865,20 @@ static int sasem_probe(struct usb_interface *interface,
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册