diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-18 09:57:24 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-18 09:57:24 +0000 |
commit | d204fde57077927f62435f4ee1d1fcf1fb85f089 (patch) | |
tree | 94798d0d9c1180f26290d40dc483aaf2ab569905 /linux/drivers/media/video/sn9c102 | |
parent | 18ac0ef62eca3a89e0bf1f3c23bb7004e760d15b (diff) | |
download | mediapointer-dvb-s2-d204fde57077927f62435f4ee1d1fcf1fb85f089.tar.gz mediapointer-dvb-s2-d204fde57077927f62435f4ee1d1fcf1fb85f089.tar.bz2 |
drivers/media/video/sn9c102/sn9c102_core.c Fix Unlikely(x) == y
From: Roel Kluin <12o3l@tiscali.nl>
Fix Unlikely(x) == y
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Reviewed-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/sn9c102')
-rw-r--r-- | linux/drivers/media/video/sn9c102/sn9c102_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/sn9c102/sn9c102_core.c b/linux/drivers/media/video/sn9c102/sn9c102_core.c index dc8fd17b6..5740518b0 100644 --- a/linux/drivers/media/video/sn9c102/sn9c102_core.c +++ b/linux/drivers/media/video/sn9c102/sn9c102_core.c @@ -528,7 +528,7 @@ sn9c102_find_sof_header(struct sn9c102_device* cam, void* mem, size_t len) /* Search for the SOF marker (fixed part) in the header */ for (j = 0, b=cam->sof.bytesread; j+b < sizeof(marker); j++) { - if (unlikely(i+j) == len) + if (unlikely(i+j == len)) return NULL; if (*(m+i+j) == marker[cam->sof.bytesread]) { cam->sof.header[cam->sof.bytesread] = *(m+i+j); |