From: Jiri Slaby Date: Fri, 8 Dec 2006 10:39:31 +0000 (-0800) Subject: [PATCH] Char: cyclades, fix warnings X-Git-Tag: v2.6.20-rc1~34^2~148 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90cc301859ea8840634324a7f5b9680312377667;p=linux-2.6 [PATCH] Char: cyclades, fix warnings fix gcc signed/unsigned warnings Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index 7da6c3babb..3ffa080775 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c @@ -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 @@ -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; }