diff options
-rw-r--r-- | drivers/media/video/gspca/stk014.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c index d9d64911f22a..74f57db534c9 100644 --- a/drivers/media/video/gspca/stk014.c +++ b/drivers/media/video/gspca/stk014.c | |||
@@ -424,10 +424,8 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
424 | 424 | ||
425 | /* beginning of the frame */ | 425 | /* beginning of the frame */ |
426 | #define STKHDRSZ 12 | 426 | #define STKHDRSZ 12 |
427 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, | 427 | data += STKHDRSZ; |
428 | data + STKHDRSZ, len - STKHDRSZ); | 428 | len -= STKHDRSZ; |
429 | #undef STKHDRSZ | ||
430 | return; | ||
431 | } | 429 | } |
432 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); | 430 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); |
433 | } | 431 | } |