[U-Boot] [PATCH 1/4] tools: imx8image: check lseek return value

Fabio Estevam festevam at gmail.com
Thu Nov 1 12:18:05 UTC 2018


Hi Peng,

On Thu, Nov 1, 2018 at 9:15 AM Peng Fan <peng.fan at nxp.com> wrote:

> lseek only returns -1 when error. Is the coding style you proposed is preferred than
> what this patch has?

In case lseek changes someday to return something else, checking for
(ret < 0) will still work, so it is a more robust error handling.


More information about the U-Boot mailing list