Simplify the main loop
authorSimon Glass <sjg@chromium.org>
Fri, 11 Apr 2014 02:01:33 +0000 (20:01 -0600)
committerTom Rini <trini@ti.com>
Thu, 29 May 2014 21:51:42 +0000 (17:51 -0400)
commit1364a0e48a64a29930a8b22620f420e8f4984cc7
tree26f7bb77c755126e4aa24d3e55d7b90df360d74f
parent9272a9b4f637347267329c7dc48712ea6c31feaa
Simplify the main loop

The main loop is easier to follow if the code is grouped into separate
functions. Make this change, so that main_loop() is easier to read.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/main.c