Skip to content

Commit

Permalink
[PATCH] Char: cyclades, fix warnings
Browse files Browse the repository at this point in the history
fix gcc signed/unsigned warnings

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 096dcfc commit 90cc301
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/char/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,8 @@ cyz_handle_rx(struct cyclades_port *info,
char_count = rx_put - rx_get;
else
char_count = rx_put - rx_get + rx_bufsize;
if (char_count >= cy_readl(&buf_ctrl->rx_threshold)) {
if (char_count >= (int)cy_readl(&buf_ctrl->
rx_threshold)) {
cy_sched_event(info, Cy_EVENT_Z_RX_FULL);
}
#endif
Expand Down Expand Up @@ -2941,7 +2942,7 @@ static void cy_put_char(struct tty_struct *tty, unsigned char ch)
return;

CY_LOCK(info, flags);
if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1) {
if (info->xmit_cnt >= (int)(SERIAL_XMIT_SIZE - 1)) {
CY_UNLOCK(info, flags);
return;
}
Expand Down

0 comments on commit 90cc301

Please sign in to comment.