From: Jean-Francois Moine Date: Mon, 29 Sep 2008 10:03:06 +0000 (-0300) Subject: V4L/DVB (9089): gspca: Remove the duplicated EOF (ff d9) in t613. X-Git-Tag: v2.6.28-rc1~601^2~71 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b1043e562ec9e5fe60af85b3a7eea43e77a35994;p=linux-2.6-omap-h63xx.git V4L/DVB (9089): gspca: Remove the duplicated EOF (ff d9) in t613. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index 78c67429759..7e435a36b05 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c @@ -916,7 +916,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, return; } - if (data[len - 1] == 0xff && data[len] == 0xd9) { + if (data[len - 2] == 0xff && data[len - 1] == 0xd9) { /* Just in case, i have seen packets with the marker, * other's do not include it... */ data += 2;