[media] marvell-cam: Don't spam the logs on frame loss
authorJonathan Corbet <corbet@lwn.net>
Mon, 20 Jun 2011 19:14:39 +0000 (16:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:11 +0000 (17:53 -0300)
The sequence numbers already give that information if user space cares;
this is a frequent occurrence on slower machines, alas.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/marvell-ccic/mcam-core.c

index da7ec2f473ffaa9aa5af21471749fb2f6d33f730..ca3c56f05f0d9406adac5513071dcb30c1026782 100644 (file)
@@ -1263,8 +1263,6 @@ static void mcam_frame_complete(struct mcam_camera *cam, int frame)
        /*
         * Basic frame housekeeping.
         */
-       if (test_bit(frame, &cam->flags) && printk_ratelimit())
-               cam_err(cam, "Frame overrun on %d, frames lost\n", frame);
        set_bit(frame, &cam->flags);
        clear_bit(CF_DMA_ACTIVE, &cam->flags);
        if (cam->next_buf < 0)