All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sesterhenn / snakebyte <snakebyte@gmx.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [Patch] Check unsigned < 0 in media/video/hexium_gemini.c
Date: Fri, 16 Dec 2005 11:52:26 +0000	[thread overview]
Message-ID: <1134733947.8536.2.camel@alice> (raw)

[-- 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

             reply	other threads:[~2005-12-16 11:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-16 11:52 Eric Sesterhenn / snakebyte [this message]
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

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=1134733947.8536.2.camel@alice \
    --to=snakebyte@gmx.de \
    --cc=kernel-janitors@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 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.