* [KJ] check unsigned < 0 in media/video/msp3400.c
@ 2005-12-16 12:15 Eric Sesterhenn / snakebyte
0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn / snakebyte @ 2005-12-16 12:15 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
hi,
yet another patch, index is unsigned and 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/msp3400.c.orig 2005-12-16 12:49:17.000000000 +0100
+++ linux-2.6.15-rc5-git5/drivers/media/video/msp3400.c 2005-12-16 12:49:23.000000000 +0100
@@ -2164,7 +2164,7 @@ static int msp_command(struct i2c_client
{
struct v4l2_audioout *a=(struct v4l2_audioout *)arg;
- if (a->index<0||a->index>2)
+ if (a->index>2)
return -EINVAL;
if (a->index==2) {
[-- 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] only message in thread
only message in thread, other threads:[~2005-12-16 12:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16 12:15 [KJ] check unsigned < 0 in media/video/msp3400.c 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.