]> git.sur5r.net Git - u-boot/commit
sparse: Refactor chunk parsing function
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 15 Oct 2015 12:34:11 +0000 (14:34 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Nov 2015 18:17:29 +0000 (13:17 -0500)
commit7bfc3b134626aafd70b550db094df327437c5698
tree6981bf41101d7a4f098c097d024f85af3dceaa80
parentbb83c0f35af6a992c21790b21259dbd819f56e35
sparse: Refactor chunk parsing function

The chunk parsing code was duplicating a lot of code among the various
chunk types, while all of them could be covered by generic and simple
functions.

Refactor the current code to reuse as much code as possible and hopefully
make the chunk parsing loop more readable and concise.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/aboot.c