Commit 90cc3018 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

[PATCH] Char: cyclades, fix warnings

fix gcc signed/unsigned warnings
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 096dcfce
...@@ -1644,7 +1644,8 @@ cyz_handle_rx(struct cyclades_port *info, ...@@ -1644,7 +1644,8 @@ cyz_handle_rx(struct cyclades_port *info,
char_count = rx_put - rx_get; char_count = rx_put - rx_get;
else else
char_count = rx_put - rx_get + rx_bufsize; 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); cy_sched_event(info, Cy_EVENT_Z_RX_FULL);
} }
#endif #endif
...@@ -2941,7 +2942,7 @@ static void cy_put_char(struct tty_struct *tty, unsigned char ch) ...@@ -2941,7 +2942,7 @@ static void cy_put_char(struct tty_struct *tty, unsigned char ch)
return; return;
CY_LOCK(info, flags); 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); CY_UNLOCK(info, flags);
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment