]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: dumpimage: Simplify internal logic
authorMartyn Welch <martyn.welch@collabora.com>
Sat, 26 Jan 2019 02:31:52 +0000 (02:31 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 1 Feb 2019 19:13:46 +0000 (14:13 -0500)
commit11e3c1fd3bd8fd0a91d502fa4742749f877867bb
tree7defa80709f6ee28be8597db355c2ac347395873
parent12b831879a765722c1a94ca75c6adb6f80759cd9
tools: dumpimage: Simplify internal logic

There are 3 supported modes of operation:

1) Show version
2) List image contents
3) Extract image component

Option (1) terminates early, so only options (2) and (3) remain. Remove
redundant check for these modes.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
tools/dumpimage.c