diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-11-24 10:28:58 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-11-24 10:28:58 +0100 |
commit | 1b1d9fda3678e6dc40cc9670e03f18fd85f6942d (patch) | |
tree | f0cea6e6c97105d71967730be36ed35221617c9a /linux/drivers/media/video/gspca | |
parent | 5b3641f8ff83def3e5b76f07122b4323698350e7 (diff) | |
download | mediapointer-dvb-s2-1b1d9fda3678e6dc40cc9670e03f18fd85f6942d.tar.gz mediapointer-dvb-s2-1b1d9fda3678e6dc40cc9670e03f18fd85f6942d.tar.bz2 |
gspca: Simplify the pkt_scan of stk014.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca')
-rw-r--r-- | linux/drivers/media/video/gspca/stk014.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/drivers/media/video/gspca/stk014.c b/linux/drivers/media/video/gspca/stk014.c index d9d64911f..74f57db53 100644 --- a/linux/drivers/media/video/gspca/stk014.c +++ b/linux/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); } |