]> git.baikalelectronics.ru Git - uboot.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)
commita0cea56540675aeeb3cb8a01b12522056c424045
tree7defa80709f6ee28be8597db355c2ac347395873
parent446bcb9263557f25edb68819db8d16023b6aefa8
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