From: H Hartley Sweeten Date: Wed, 19 Dec 2012 22:45:12 +0000 (-0700) Subject: staging: comedi: comedi_fops: cleanup comedi_mmap() X-Git-Tag: v3.9-rc1~127^2~515 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52840a98bbb50a7ed881b6cc361957c58c2731d;p=pandora-kernel.git staging: comedi: comedi_fops: cleanup comedi_mmap() Use comedi_dev_from_minor() to simplify the return -ENODEV tests. Change the (foo == NULL) tests to simply (!foo). Use a local variable to hold a pointer to the async->buf_page_list[] when doing the remap_pfn_range(). This cleans up the ugly line breaks for the page_to_pfn(virt_to_page(...) operation. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed