diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-11-13 07:21:03 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:59 -0500 |
commit | 76dd272b56cd1c7fa013ef5d7eb28c4d319e322b (patch) | |
tree | 4cd4660a847d2c1fdd9104ce4cff92b647e09b15 /drivers/media/video/gspca/spca508.c | |
parent | d131c3c9e136cb5a817094c3dc4b7261b495cd6e (diff) |
V4L/DVB (13453): gspca - all subdrivers: Remove the unused frame ptr from pkt_scan().
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/spca508.c')
-rw-r--r-- | drivers/media/video/gspca/spca508.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index 9696c4caf5c9..4d8e6cf75d55 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -1447,26 +1447,22 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
1447 | } | 1447 | } |
1448 | 1448 | ||
1449 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 1449 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
1450 | struct gspca_frame *frame, /* target */ | ||
1451 | u8 *data, /* isoc packet */ | 1450 | u8 *data, /* isoc packet */ |
1452 | int len) /* iso packet length */ | 1451 | int len) /* iso packet length */ |
1453 | { | 1452 | { |
1454 | switch (data[0]) { | 1453 | switch (data[0]) { |
1455 | case 0: /* start of frame */ | 1454 | case 0: /* start of frame */ |
1456 | frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, | 1455 | gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); |
1457 | data, 0); | ||
1458 | data += SPCA508_OFFSET_DATA; | 1456 | data += SPCA508_OFFSET_DATA; |
1459 | len -= SPCA508_OFFSET_DATA; | 1457 | len -= SPCA508_OFFSET_DATA; |
1460 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, | 1458 | gspca_frame_add(gspca_dev, FIRST_PACKET, data, len); |
1461 | data, len); | ||
1462 | break; | 1459 | break; |
1463 | case 0xff: /* drop */ | 1460 | case 0xff: /* drop */ |
1464 | break; | 1461 | break; |
1465 | default: | 1462 | default: |
1466 | data += 1; | 1463 | data += 1; |
1467 | len -= 1; | 1464 | len -= 1; |
1468 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, | 1465 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
1469 | data, len); | ||
1470 | break; | 1466 | break; |
1471 | } | 1467 | } |
1472 | } | 1468 | } |