Skip to content

Commit 115bcd1

Browse files
Julia Lawalltorvalds
authored andcommitted
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: 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>
1 parent d9d691f commit 115bcd1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/staging/tty/specialix.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ static int sx_open(struct tty_struct *tty, struct file *filp)
14161416
board, bp, port, SX_PORT(tty->index));
14171417

14181418
if (sx_paranoia_check(port, tty->name, "sx_open")) {
1419-
func_enter();
1419+
func_exit();
14201420
return -ENODEV;
14211421
}
14221422

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

14361436
error = sx_setup_port(bp, port);
14371437
if (error) {
1438-
func_enter();
1438+
func_exit();
14391439
return error;
14401440
}
14411441

14421442
error = block_til_ready(tty, filp, port);
14431443
if (error) {
1444-
func_enter();
1444+
func_exit();
14451445
return error;
14461446
}
14471447

@@ -1860,7 +1860,7 @@ static int sx_set_serial_info(struct specialix_port *port,
18601860
func_enter();
18611861

18621862
if (copy_from_user(&tmp, newinfo, sizeof(tmp))) {
1863-
func_enter();
1863+
func_exit();
18641864
return -EFAULT;
18651865
}
18661866

0 commit comments

Comments
 (0)