Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95220
b: refs/heads/master
c: 257afa3
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 931c3b7 commit da92793
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 4cd55ab1f991e4d4f3551a711f0f87441a57cd1b
refs/heads/master: 257afa3cb6beaad60849655cb272d4b9de74cf63
11 changes: 6 additions & 5 deletions trunk/drivers/char/amiserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,33 +832,34 @@ static void change_speed(struct async_struct *info,
local_irq_restore(flags);
}

static void rs_put_char(struct tty_struct *tty, unsigned char ch)
static int rs_put_char(struct tty_struct *tty, unsigned char ch)
{
struct async_struct *info;
unsigned long flags;

if (!tty)
return;
return 0;

info = tty->driver_data;

if (serial_paranoia_check(info, tty->name, "rs_put_char"))
return;
return 0;

if (!info->xmit.buf)
return;
return 0;

local_irq_save(flags);
if (CIRC_SPACE(info->xmit.head,
info->xmit.tail,
SERIAL_XMIT_SIZE) == 0) {
local_irq_restore(flags);
return;
return 0;
}

info->xmit.buf[info->xmit.head++] = ch;
info->xmit.head &= SERIAL_XMIT_SIZE-1;
local_irq_restore(flags);
return 1;
}

static void rs_flush_chars(struct tty_struct *tty)
Expand Down

0 comments on commit da92793

Please sign in to comment.