[U-Boot] [PATCH 003/126] dm: core: Drop a few early returns

Bin Meng bmeng.cn at gmail.com
Thu Oct 3 12:47:52 UTC 2019


On Wed, Sep 25, 2019 at 10:58 PM Simon Glass <sjg at chromium.org> wrote:
>
> Two functions in this file return early for no good reason. Adjust the
> code to match the standard DM style of returning 0 at the end of the
> function on success.
>
> Oddly enough this save 12 bytes of code size on ARM.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/core/uclass.c | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list