xlat_tables_v2: get unmap action type with helper function.
authorDavid Pu <dpu@nvidia.com>
Fri, 22 Feb 2019 10:15:57 +0000 (02:15 -0800)
committerDavid Pu <dpu@nvidia.com>
Thu, 28 Feb 2019 17:58:16 +0000 (09:58 -0800)
commit3ff6e401f9a43dd4f6a93c8af6e4cb83f93343b5
tree019ae976cf0d62d7283e0bd514e1006ad63cd816
parent5ba32a7660051464ed1d56129adf2606db54b5e3
xlat_tables_v2: get unmap action type with helper function.

This patch introduces helper function 'xlat_tables_unmap_region_action'
to get the required action type from given arguments when unmapping the
specified region.
it reduces cyclomatic code complexity in xlat_tables_unmap_region function.

Cyclomatic complexity calculated using 'Coverity'

fixes arm-software/tf-issues#673

Signed-off-by: David Pu <dpu@nvidia.com>
lib/xlat_tables_v2/xlat_tables_core.c