staging: comedi: Use vma_pages function on vma object instead of explicit computation
authorsayli karnik <karniksayli1995@gmail.com>
Mon, 19 Sep 2016 21:51:38 +0000 (03:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 12:01:21 +0000 (14:01 +0200)
commitec9d0754e0c64013278fda87d1bd6b8318747abe
treedf59a33a51fd30bdfd200898a632d036cae0bfd6
parent33d877bb42df3db877677039746a71c93322add2
staging: comedi: Use vma_pages function on vma object instead of explicit computation

This patch uses vma_pages function on vma object instead of explicit
computation.

Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c