Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95226
b: refs/heads/master
c: 6ae0457
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 34cf5e9 commit c1d1167
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5b08c66194fba02a865b397579b7204688bcb1e
refs/heads/master: 6ae045767b2adae4e8fc054b980326a971ac4c8e
9 changes: 5 additions & 4 deletions trunk/drivers/char/specialix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ static int sx_write(struct tty_struct * tty,
}


static void sx_put_char(struct tty_struct * tty, unsigned char ch)
static int sx_put_char(struct tty_struct * tty, unsigned char ch)
{
struct specialix_port *port = (struct specialix_port *)tty->driver_data;
unsigned long flags;
Expand All @@ -1700,12 +1700,12 @@ static void sx_put_char(struct tty_struct * tty, unsigned char ch)

if (sx_paranoia_check(port, tty->name, "sx_put_char")) {
func_exit();
return;
return 0;
}
dprintk (SX_DEBUG_TX, "check tty: %p %p\n", tty, port->xmit_buf);
if (!port->xmit_buf) {
func_exit();
return;
return 0;
}
bp = port_Board(port);
spin_lock_irqsave(&port->lock, flags);
Expand All @@ -1715,7 +1715,7 @@ static void sx_put_char(struct tty_struct * tty, unsigned char ch)
spin_unlock_irqrestore(&port->lock, flags);
dprintk (SX_DEBUG_TX, "Exit size\n");
func_exit();
return;
return 0;
}
dprintk (SX_DEBUG_TX, "Handle xmit: %p %p\n", port, port->xmit_buf);
port->xmit_buf[port->xmit_head++] = ch;
Expand All @@ -1724,6 +1724,7 @@ static void sx_put_char(struct tty_struct * tty, unsigned char ch)
spin_unlock_irqrestore(&port->lock, flags);

func_exit();
return 1;
}


Expand Down

0 comments on commit c1d1167

Please sign in to comment.