diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-11-24 04:28:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:38:46 -0500 |
commit | 8843765e28f0eeb0510edb0cc3037d9e1dffd6a6 (patch) | |
tree | 4497d486efe2d13f3d12d97548442be44664405b /drivers/media/video/gspca/stk014.c | |
parent | 9edf1a69259a74fc295f2ef52546f3da8bb962cb (diff) |
V4L/DVB (9840): gspca: Simplify the pkt_scan of stk014.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/stk014.c')
-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 | } |