aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-11-13 07:21:03 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:41:59 -0500
commit76dd272b56cd1c7fa013ef5d7eb28c4d319e322b (patch)
tree4cd4660a847d2c1fdd9104ce4cff92b647e09b15 /drivers/media/video/gspca/gspca.c
parentd131c3c9e136cb5a817094c3dc4b7261b495cd6e (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/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 68ba535300f7..4076f8e5a6fc 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -165,7 +165,7 @@ static void fill_frame(struct gspca_dev *gspca_dev,
165 i, urb->iso_frame_desc[i].offset, len); 165 i, urb->iso_frame_desc[i].offset, len);
166 data = (u8 *) urb->transfer_buffer 166 data = (u8 *) urb->transfer_buffer
167 + urb->iso_frame_desc[i].offset; 167 + urb->iso_frame_desc[i].offset;
168 pkt_scan(gspca_dev, gspca_dev->cur_frame, data, len); 168 pkt_scan(gspca_dev, data, len);
169 } 169 }
170 170
171resubmit: 171resubmit:
@@ -218,7 +218,6 @@ static void bulk_irq(struct urb *urb)
218 218
219 PDEBUG(D_PACK, "packet l:%d", urb->actual_length); 219 PDEBUG(D_PACK, "packet l:%d", urb->actual_length);
220 gspca_dev->sd_desc->pkt_scan(gspca_dev, 220 gspca_dev->sd_desc->pkt_scan(gspca_dev,
221 gspca_dev->frame,
222 urb->transfer_buffer, 221 urb->transfer_buffer,
223 urb->actual_length); 222 urb->actual_length);
224 223
@@ -243,11 +242,10 @@ resubmit:
243 * DISCARD_PACKET invalidates the whole frame. 242 * DISCARD_PACKET invalidates the whole frame.
244 * On LAST_PACKET, a new frame is returned. 243 * On LAST_PACKET, a new frame is returned.
245 */ 244 */
246struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev, 245void gspca_frame_add(struct gspca_dev *gspca_dev,
247 enum gspca_packet_type packet_type, 246 enum gspca_packet_type packet_type,
248 struct gspca_frame *dummy, 247 const u8 *data,
249 const __u8 *data, 248 int len)
250 int len)
251{ 249{
252 struct gspca_frame *frame; 250 struct gspca_frame *frame;
253 int i, j; 251 int i, j;
@@ -259,7 +257,7 @@ struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev,
259 if ((frame->v4l2_buf.flags & BUF_ALL_FLAGS) 257 if ((frame->v4l2_buf.flags & BUF_ALL_FLAGS)
260 != V4L2_BUF_FLAG_QUEUED) { 258 != V4L2_BUF_FLAG_QUEUED) {
261 gspca_dev->last_packet_type = DISCARD_PACKET; 259 gspca_dev->last_packet_type = DISCARD_PACKET;
262 return frame; 260 return;
263 } 261 }
264 262
265 /* when start of a new frame, if the current frame buffer 263 /* when start of a new frame, if the current frame buffer
@@ -272,7 +270,7 @@ struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev,
272 } else if (gspca_dev->last_packet_type == DISCARD_PACKET) { 270 } else if (gspca_dev->last_packet_type == DISCARD_PACKET) {
273 if (packet_type == LAST_PACKET) 271 if (packet_type == LAST_PACKET)
274 gspca_dev->last_packet_type = packet_type; 272 gspca_dev->last_packet_type = packet_type;
275 return frame; 273 return;
276 } 274 }
277 275
278 /* append the packet to the frame buffer */ 276 /* append the packet to the frame buffer */
@@ -304,9 +302,9 @@ struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev,
304 i, 302 i,
305 gspca_dev->fr_o); 303 gspca_dev->fr_o);
306 j = gspca_dev->fr_queue[i]; 304 j = gspca_dev->fr_queue[i];
307 gspca_dev->cur_frame = frame = &gspca_dev->frame[j]; 305 gspca_dev->cur_frame = &gspca_dev->frame[j];
308 } 306 }
309 return frame; 307 return;
310} 308}
311EXPORT_SYMBOL(gspca_frame_add); 309EXPORT_SYMBOL(gspca_frame_add);
312 310