fvp: plat_io_storage: remove duplicated code
Fixes ARM-software/tf-issues#41

The policy functions for each file to be loaded were implemented by
copy/pasting one method and then varying the data checked.

This patch creates a generic function to check the policy based on the
data stored in a table.

This removes the amount of duplicated code but also makes the code
simpler and more efficient.

Change-Id: I1c52eacf6f18a1442dabbb33edd03d4bb8bbeae0
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
1 parent 4bfc2d2 commit 48e2ca7967b8569cd8028b2ed7d1897a396c7b4a
@Ryan Harkin Ryan Harkin authored on 18 Feb 2014
Dan Handley committed on 5 Mar 2014
Showing 1 changed file
View
plat/fvp/plat_io_storage.c