aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/sn9c102
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2008-04-22 13:42:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:43 -0400
commit05b207924d558935080ac08776236e42aca1708c (patch)
treeab6a1a6e98623029beae5c1f9f15e117f6958150 /drivers/media/video/sn9c102
parentef6ad5c35ed7233e7aafcc5645a1470199b10cc7 (diff)
V4L/DVB (7220): drivers/media/video/sn9c102/sn9c102_core.c Fix Unlikely(x) == y
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 'drivers/media/video/sn9c102')
-rw-r--r--drivers/media/video/sn9c102/sn9c102_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c
index e5ef0190ebdc..94f393eebd51 100644
--- a/drivers/media/video/sn9c102/sn9c102_core.c
+++ b/drivers/media/video/sn9c102/sn9c102_core.c
@@ -528,7 +528,7 @@ sn9c102_find_sof_header(struct sn9c102_device* cam, void* mem, size_t len)
528 528
529 /* Search for the SOF marker (fixed part) in the header */ 529 /* Search for the SOF marker (fixed part) in the header */
530 for (j = 0, b=cam->sof.bytesread; j+b < sizeof(marker); j++) { 530 for (j = 0, b=cam->sof.bytesread; j+b < sizeof(marker); j++) {
531 if (unlikely(i+j) == len) 531 if (unlikely(i+j == len))
532 return NULL; 532 return NULL;
533 if (*(m+i+j) == marker[cam->sof.bytesread]) { 533 if (*(m+i+j) == marker[cam->sof.bytesread]) {
534 cam->sof.header[cam->sof.bytesread] = *(m+i+j); 534 cam->sof.header[cam->sof.bytesread] = *(m+i+j);