[PATCH 5/6] moveconfig: Use a function to read files

Tom Rini trini at konsulko.com
Tue Jan 25 16:58:14 CET 2022


On Sat, Dec 18, 2021 at 02:54:34PM -0700, Simon Glass wrote:

> At present there is quite a bit of ad-hoc code reading from files. The
> most common case is to read the file as lines. Put it in a function and
> set the unicode encoding correctly.
> 
> Avoid writing back to a file when there are obviously no changes as this
> speeds things up slightly.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220125/628a3268/attachment.sig>


More information about the U-Boot mailing list