]> git.baikalelectronics.ru Git - uboot.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)
commit8fa25e01d873a4f9fb6664f721951799f9361841
treeb4fd112eed3b4fbb38454e463244fe0c88326aaa
parente93c7f680090f3eda5dada629705e3746326817d
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