• Ryan Harkin's avatar
    fvp: plat_io_storage: remove duplicated code · 48e2ca79
    Ryan Harkin authored
    
    
    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: default avatarRyan Harkin <ryan.harkin@linaro.org>
    48e2ca79
plat_io_storage.c 6.13 KB