Commit 115bcd15 authored by Julia Lawall's avatar Julia Lawall Committed by Linus Torvalds

drivers/staging/tty/specialix.c: convert func_enter to func_exit

Convert calls to func_enter on leaving a function to func_exit.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
@@

- func_enter();
+ func_exit();
  return...;
// </smpl>
Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Cc: Roger Wolff <R.E.Wolff@BitWizard.nl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d9d691f5
...@@ -1416,7 +1416,7 @@ static int sx_open(struct tty_struct *tty, struct file *filp) ...@@ -1416,7 +1416,7 @@ static int sx_open(struct tty_struct *tty, struct file *filp)
board, bp, port, SX_PORT(tty->index)); board, bp, port, SX_PORT(tty->index));
if (sx_paranoia_check(port, tty->name, "sx_open")) { if (sx_paranoia_check(port, tty->name, "sx_open")) {
func_enter(); func_exit();
return -ENODEV; return -ENODEV;
} }
...@@ -1435,13 +1435,13 @@ static int sx_open(struct tty_struct *tty, struct file *filp) ...@@ -1435,13 +1435,13 @@ static int sx_open(struct tty_struct *tty, struct file *filp)
error = sx_setup_port(bp, port); error = sx_setup_port(bp, port);
if (error) { if (error) {
func_enter(); func_exit();
return error; return error;
} }
error = block_til_ready(tty, filp, port); error = block_til_ready(tty, filp, port);
if (error) { if (error) {
func_enter(); func_exit();
return error; return error;
} }
...@@ -1860,7 +1860,7 @@ static int sx_set_serial_info(struct specialix_port *port, ...@@ -1860,7 +1860,7 @@ static int sx_set_serial_info(struct specialix_port *port,
func_enter(); func_enter();
if (copy_from_user(&tmp, newinfo, sizeof(tmp))) { if (copy_from_user(&tmp, newinfo, sizeof(tmp))) {
func_enter(); func_exit();
return -EFAULT; return -EFAULT;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment