aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zr364xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/zr364xx.c')
-rw-r--r--drivers/media/video/zr364xx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/zr364xx.c b/drivers/media/video/zr364xx.c
index cd2e39fc4bf0..e44cb330bbc8 100644
--- a/drivers/media/video/zr364xx.c
+++ b/drivers/media/video/zr364xx.c
@@ -507,14 +507,12 @@ static void zr364xx_fillbuff(struct zr364xx_camera *cam,
507 const char *tmpbuf; 507 const char *tmpbuf;
508 char *vbuf = videobuf_to_vmalloc(&buf->vb); 508 char *vbuf = videobuf_to_vmalloc(&buf->vb);
509 unsigned long last_frame; 509 unsigned long last_frame;
510 struct zr364xx_framei *frm;
511 510
512 if (!vbuf) 511 if (!vbuf)
513 return; 512 return;
514 513
515 last_frame = cam->last_frame; 514 last_frame = cam->last_frame;
516 if (last_frame != -1) { 515 if (last_frame != -1) {
517 frm = &cam->buffer.frame[last_frame];
518 tmpbuf = (const char *)cam->buffer.frame[last_frame].lpvbits; 516 tmpbuf = (const char *)cam->buffer.frame[last_frame].lpvbits;
519 switch (buf->fmt->fourcc) { 517 switch (buf->fmt->fourcc) {
520 case V4L2_PIX_FMT_JPEG: 518 case V4L2_PIX_FMT_JPEG: