[media] videobuf-dma-sg: Use min_t(size_t, PAGE_SIZE ..)
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Oct 2010 12:31:33 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:17:00 +0000 (01:17 -0200)
commit1bede7521dbc12b386f72f26d41933789ccc9d7d
tree82bf713b49ed99da9f478865507a2a9aafbf27d0
parent22c00854f3db563427527a8f71c20bd3943b13e0
[media] videobuf-dma-sg: Use min_t(size_t, PAGE_SIZE ..)

As pointed by Laurent:

I think min_t(size_t, PAGE_SIZE, size) is the preferred way.

Thanks-to: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-dma-sg.c