summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexandru Gagniuc <[email protected]>2021-01-20 10:46:50 -0600
committerTom Rini <[email protected]>2021-02-17 17:12:45 -0500
commit917fa369f6fbdc2011e500fbeea0e07ba70af9c3 (patch)
treedd2eee300e2fb0c6bb8ef237135cbea4f76cab21 /scripts
parentefc4ad0bc763f135f3437f51df693e83941a9928 (diff)
spl: fit: Factor out FIT parsing and use a context struct
The logical steps in spl_load_simple_fit() are difficult to follow. I think the long comments, ifdefs, and ungodly number of variables seriously affect the readability. In particular, it violates section 6 of the coding style, paragraphs (3), and (4). The purpose of this patch is to improve the situation by - Factoring out initialization and parsing to separate functions - Reduce the number of variables by using a context structure This change introduces no functional changes. Signed-off-by: Alexandru Gagniuc <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions