All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [Patch] Check unsigned < 0 in media/video/hexium_gemini.c
@ 2005-12-16 11:52 Eric Sesterhenn / snakebyte
  2005-12-16 11:54 ` [KJ] [Patch] check unsigned < 0 in media/video/hexium_orion.c Eric Sesterhenn / snakebyte
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Eric Sesterhenn / snakebyte @ 2005-12-16 11:52 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

hi,

this fixes another icc warning. index is unsigned and only
used as an array index, so it should be safe to remove
the comparison.

Signed-of-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.15-rc5-git5/drivers/media/video/hexium_gemini.c.orig	2005-12-16 12:44:37.000000000 +0100
+++ linux-2.6.15-rc5-git5/drivers/media/video/hexium_gemini.c	2005-12-16 12:44:57.000000000 +0100
@@ -320,7 +320,7 @@ static int hexium_ioctl(struct saa7146_f
 			struct v4l2_input *i = arg;
 			DEB_EE(("VIDIOC_ENUMINPUT %d.\n", i->index));
 
-			if (i->index < 0 || i->index >= HEXIUM_INPUTS) {
+			if (i->index >= HEXIUM_INPUTS) {
 				return -EINVAL;
 			}
 



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-18 21:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16 11:52 [KJ] [Patch] Check unsigned < 0 in media/video/hexium_gemini.c Eric Sesterhenn / snakebyte
2005-12-16 11:54 ` [KJ] [Patch] check unsigned < 0 in media/video/hexium_orion.c Eric Sesterhenn / snakebyte
2005-12-16 13:38 ` [KJ] [Patch] Check unsigned < 0 in media/video/mxb.c Eric Sesterhenn / snakebyte
2005-12-16 14:25 ` [KJ] [Patch] Check unsigned < 0 in media/video/hexium_gemini.c Tobias Klauser
2005-12-18 16:45 ` [KJ] [Patch] Check unsigned < 0 in media/video/mxb.c Ricardo Nabinger Sanchez
2005-12-18 21:12 ` Eric Sesterhenn / snakebyte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.