diff options
-rw-r--r-- | drivers/media/video/sn9c102/sn9c102_core.c | 2 |
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); |