From: Jean-Francois Moine Date: Mon, 24 Nov 2008 09:28:58 +0000 (-0300) Subject: V4L/DVB (9840): gspca: Simplify the pkt_scan of stk014. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8843765e28f0eeb0510edb0cc3037d9e1dffd6a6;p=linux-beck.git V4L/DVB (9840): gspca: Simplify the pkt_scan of stk014. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- 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, /* 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); }