mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
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>
This commit is contained in:
parent
9edf1a6925
commit
8843765e28
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user