diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-11-24 06:28:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 09:38:46 -0200 |
commit | 8843765e28f0eeb0510edb0cc3037d9e1dffd6a6 (patch) | |
tree | 4497d486efe2d13f3d12d97548442be44664405b /drivers/media/video/gspca/stk014.c | |
parent | 9edf1a69259a74fc295f2ef52546f3da8bb962cb (diff) | |
download | op-kernel-dev-8843765e28f0eeb0510edb0cc3037d9e1dffd6a6.zip op-kernel-dev-8843765e28f0eeb0510edb0cc3037d9e1dffd6a6.tar.gz |
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 d9d6491..74f57db 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, /* beginning of the frame */ #define STKHDRSZ 12 - gspca_frame_add(gspca_dev, INTER_PACKET, frame, - data + STKHDRSZ, len - STKHDRSZ); -#undef STKHDRSZ - return; + data += STKHDRSZ; + len -= STKHDRSZ; } gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); } |