Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95223
b: refs/heads/master
c: d7e752e
h: refs/heads/master
i:
  95221: e8c7cca
  95219: 931c3b7
  95215: f7a56a7
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 80a786f commit 2460769
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 0be2eadee7baff96d2c7339be4bc2a0f5c96e4f5
refs/heads/master: d7e752e2757fba49178f4b1af4778ca64d305cbb
7 changes: 4 additions & 3 deletions trunk/drivers/char/pcmcia/synclink_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ static void mgslpc_change_params(MGSLPC_INFO *info)

/* Add a character to the transmit buffer
*/
static void mgslpc_put_char(struct tty_struct *tty, unsigned char ch)
static int mgslpc_put_char(struct tty_struct *tty, unsigned char ch)
{
MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data;
unsigned long flags;
Expand All @@ -1556,10 +1556,10 @@ static void mgslpc_put_char(struct tty_struct *tty, unsigned char ch)
}

if (mgslpc_paranoia_check(info, tty->name, "mgslpc_put_char"))
return;
return 0;

if (!info->tx_buf)
return;
return 0;

spin_lock_irqsave(&info->lock,flags);

Expand All @@ -1572,6 +1572,7 @@ static void mgslpc_put_char(struct tty_struct *tty, unsigned char ch)
}

spin_unlock_irqrestore(&info->lock,flags);
return 1;
}

/* Enable transmitter so remaining characters in the
Expand Down

0 comments on commit 2460769

Please sign in to comment.