V4L/DVB: videobuf-vmalloc: remove __videobuf_sync()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 5 May 2010 20:16:35 +0000 (17:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:39 +0000 (12:58 -0300)
videobuf-core checks if .sync ops is defined before calling.

So, we don't need a do-nothing function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-vmalloc.c

index f8b5b5635113460b2e785f841cc8aa5b1fac7ab4..583728f4c221a4ce1eaf3f78d177758941b2f581 100644 (file)
@@ -229,12 +229,6 @@ static int __videobuf_iolock(struct videobuf_queue *q,
        return 0;
 }
 
-static int __videobuf_sync(struct videobuf_queue *q,
-                          struct videobuf_buffer *buf)
-{
-       return 0;
-}
-
 static int __videobuf_mmap_mapper(struct videobuf_queue *q,
                                  struct videobuf_buffer *buf,
                                  struct vm_area_struct *vma)
@@ -301,7 +295,6 @@ static struct videobuf_qtype_ops qops = {
 
        .alloc        = __videobuf_alloc,
        .iolock       = __videobuf_iolock,
-       .sync         = __videobuf_sync,
        .mmap_mapper  = __videobuf_mmap_mapper,
        .vaddr        = videobuf_to_vmalloc,
 };