projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9edf1a6
)
V4L/DVB (9840): gspca: Simplify the pkt_scan of stk014.
author
Jean-Francois Moine
<moinejf@free.fr>
Mon, 24 Nov 2008 09:28:58 +0000
(06:28 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 30 Dec 2008 11:38:46 +0000
(09:38 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/stk014.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/stk014.c
b/drivers/media/video/gspca/stk014.c
index
d9d6491
..
74f57db
100644
(file)
--- 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);
}