cbfs: Simplify file iteration
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:00:15 +0000 (18:00 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 00:59:37 +0000 (13:59 +1300)
commit0e2fee52d0fba6ceb455c7969eecb2cf73031267
tree63b4bf415dd5eff22e5525e2c815c7bbb6ea79ab
parent70a394a6b6437e18e67edfd7054302b830e1fe6a
cbfs: Simplify file iteration

In file_cbfs_next_file() there is a lot of complicated code to move to
the next file. Use the ALIGN() macros to simplify this.

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