]> git.ipfire.org Git - thirdparty/u-boot.git/commit
disk: Use a helper function to reduce duplication
authorSimon Glass <sjg@chromium.org>
Sun, 19 Mar 2023 19:29:57 +0000 (08:29 +1300)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commitd87bdb82eae66512c222fd93280acaf4dd1cd4be
treeb4fd112eed3b4fbb38454e463244fe0c88326aaa
parentc61df34009c3ad46b5798e1d13fd640419bf17e6
disk: Use a helper function to reduce duplication

Reduce the duplicated code slightly by using a helper function to handle
the common code.

This reduces the code size very slightly.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/disk-uclass.c