]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Drop a few early returns
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:47 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:37 +0000 (13:57 +0800)
commit2b74e249ca4637b402647948466dcf73860bfdb7
tree45ebb133b861267c2c98062d1dc7970d8cb7185c
parent168d567f745797599e60989850edf0bc9787e9f5
dm: core: Drop a few early returns

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@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/uclass.c