From: Jiri Slaby Date: Fri, 8 Dec 2006 10:38:57 +0000 (-0800) Subject: [PATCH] Char: isicom, fix tty index check X-Git-Tag: v2.6.20-rc1~34^2~187 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c4edf0c8ee670de7b33d2a24eddd7c6b7edcf6;p=pandora-kernel.git [PATCH] Char: isicom, fix tty index check Since tty->index is signed and may be < 0, we should assign this to int not uint. There is already a check to ensure if it is not negative, but gcc complains with -W flag enabled and it is perfectly correct: drivers/char/isicom.c:953: warning: comparison of unsigned expression < 0 is always false Fix this issue by converting `line' variable from uint to int. Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed