public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: <support@cyclades.com>
Subject: [PATCH 4/4] Char: cyclades, fix warnings
Date: Sat, 11 Nov 2006 23:41:16 +0100 (CET)	[thread overview]
Message-ID: <27094265271711311084@wsc.cz> (raw)
In-Reply-To: <30973309282550314198@wsc.cz>

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;
 	}

      parent reply	other threads:[~2006-11-11 22:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-11 22:40 [PATCH 1/4] Char: cyclades, save indent levels Jiri Slaby
2006-11-11 22:41 ` [PATCH 3/4] Char: cyclades, cleanup Jiri Slaby
2006-11-11 22:41 ` Jiri Slaby [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27094265271711311084@wsc.cz \
    --to=jirislaby@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox