Commit 05b20792 authored by Roel Kluin's avatar Roel Kluin Committed by Mauro Carvalho Chehab

V4L/DVB (7220): drivers/media/video/sn9c102/sn9c102_core.c Fix Unlikely(x) == y

Fix Unlikely(x) == y
Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Reviewed-by: default avatarLuca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent ef6ad5c3
...@@ -528,7 +528,7 @@ sn9c102_find_sof_header(struct sn9c102_device* cam, void* mem, size_t len) ...@@ -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 */ /* Search for the SOF marker (fixed part) in the header */
for (j = 0, b=cam->sof.bytesread; j+b < sizeof(marker); j++) { for (j = 0, b=cam->sof.bytesread; j+b < sizeof(marker); j++) {
if (unlikely(i+j) == len) if (unlikely(i+j == len))
return NULL; return NULL;
if (*(m+i+j) == marker[cam->sof.bytesread]) { if (*(m+i+j) == marker[cam->sof.bytesread]) {
cam->sof.header[cam->sof.bytesread] = *(m+i+j); cam->sof.header[cam->sof.bytesread] = *(m+i+j);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment