]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: gasket: page_table: simplify gasket_components_to_dev_address
authorNick Ewalt <nicholasewalt@google.com>
Mon, 15 Oct 2018 04:59:24 +0000 (21:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2018 14:30:37 +0000 (16:30 +0200)
commit4a966fa24a5a7e236db8ac1e58e04107db1c1930
treec976683ea425706a87f0e41e74a65dc892a0e998
parentbae54fb8121da9d52cd6919758defb24639901cf
staging: gasket: page_table: simplify gasket_components_to_dev_address

Refactor gasket_components_to_dev_address to be faster and easier to
understand. The old implementation was unnecessarily complex and masked
the page_index for simple addresses but not extended ones. It makes the
most sense for this function to perform no such masking.

Signed-off-by: Nick Ewalt <nicholasewalt@google.com>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_page_table.c