diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2012-12-19 15:45:12 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-07 14:25:49 -0800 |
commit | a52840a98bbb50a7ed881b6cc361957c58c2731d (patch) | |
tree | 4ee4238d64c59804f55e46f7f292fdc8503a877c /init | |
parent | 401d99de5c0b70f7d64a410ed01d19032698656c (diff) |
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions