]> git.baikalelectronics.ru Git - uboot.git/commit
bloblist: Update to use conditional value
authorSimon Glass <sjg@chromium.org>
Sat, 22 Jan 2022 12:07:27 +0000 (05:07 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 9 Feb 2022 04:07:59 +0000 (23:07 -0500)
commit1d7f08d0f21421569011c885f561ab27b2164b07
tree57525a0e0cee2fcdbc96c840fda3bb887fd3a979
parentdce37ddcfce358cc9c1a731d1ca4e31c92eb190c
bloblist: Update to use conditional value

Use the new IF_ENABLED_INT() feature to avoid needing our own inline
function to handle this case. Tidy up the logic to ensure that the value
is only used when present. Update the 'expected' comment also.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/bloblist.c
include/bloblist.h