Skip to content

Commit

Permalink
drivers/staging/tty/specialix.c: convert func_enter to func_exit
Browse files Browse the repository at this point in the history
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: Julia Lawall <julia@diku.dk>
Cc: Roger Wolff <R.E.Wolff@BitWizard.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Mar 24, 2011
1 parent d9d691f commit 115bcd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/tty/specialix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ static int sx_open(struct tty_struct *tty, struct file *filp)
board, bp, port, SX_PORT(tty->index));

if (sx_paranoia_check(port, tty->name, "sx_open")) {
func_enter();
func_exit();
return -ENODEV;
}

Expand All @@ -1435,13 +1435,13 @@ static int sx_open(struct tty_struct *tty, struct file *filp)

error = sx_setup_port(bp, port);
if (error) {
func_enter();
func_exit();
return error;
}

error = block_til_ready(tty, filp, port);
if (error) {
func_enter();
func_exit();
return error;
}

Expand Down Expand Up @@ -1860,7 +1860,7 @@ static int sx_set_serial_info(struct specialix_port *port,
func_enter();

if (copy_from_user(&tmp, newinfo, sizeof(tmp))) {
func_enter();
func_exit();
return -EFAULT;
}

Expand Down

0 comments on commit 115bcd1

Please sign in to comment.