Messages in this thread Patch in this message | | | Subject | [PATCH 4/4] Char: cyclades, fix warnings | From | Jiri Slaby <> | Date | Sat, 11 Nov 2006 23:41:16 +0100 (CET) |
| |
cyclades, fix warnings
fix gcc signed/unsigned warnings
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
--- commit d58848fe07c13a82e9d429d481f9677857e73019 tree f3bb653ef8a7de4d91d172f1763904051849055b parent 76495d5f78bf804b07f646abfbcb7a0a12938e11 author Jiri Slaby <jirislaby@gmail.com> Thu, 09 Nov 2006 22:21:54 +0100 committer Jiri Slaby <jirislaby@gmail.com> Thu, 09 Nov 2006 22:21:54 +0100
drivers/char/cyclades.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index f3efe85..4711a7b 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c @@ -1647,7 +1647,8 @@ #ifdef CONFIG_CYZ_INTR 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 @@ -2944,7 +2945,7 @@ #endif 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; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |