]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: migrate env_get_default to call env_get_default_into
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Wed, 17 Jan 2024 17:59:12 +0000 (18:59 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jan 2024 02:57:36 +0000 (10:57 +0800)
commit87d3c472a266261642ad26a3d4b040de09edac71
tree09ed1fb6b3b52ef7fc4fb58620d7e5612590a6d9
parent23c1ab92be6332fb528efc2d549898a5f1d17bf9
env: migrate env_get_default to call env_get_default_into

Since both functions share a similar goal and env_get_default_into can
do what env_get_default wants to do with specific arguments, let's make
env_get_default call env_get_default_into so as to avoid code
duplication.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
env/common.c