diff options
| author | H Hartley Sweeten <[email protected]> | 2012-12-19 15:45:12 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-01-07 14:25:49 -0800 |
| commit | a52840a98bbb50a7ed881b6cc361957c58c2731d (patch) | |
| tree | 4ee4238d64c59804f55e46f7f292fdc8503a877c /tools/perf/scripts/python/netdev-times.py | |
| 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 <[email protected]>
Cc: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions