Skip to content

Commit

Permalink
V4L/DVB (9840): gspca: Simplify the pkt_scan of stk014.
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 9edf1a6 commit 8843765
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/media/video/gspca/stk014.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8843765

Please sign in to comment.