aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-22 05:07:27 -0700
committerTom Rini <trini@konsulko.com>2022-02-08 23:07:59 -0500
commitce3e75dc5977e6500669fd9418405ddd4207a164 (patch)
tree57525a0e0cee2fcdbc96c840fda3bb887fd3a979 /include
parent097ff01fb98a6f4ad03eed8cf639a5cc90fb6619 (diff)
downloadu-boot-ce3e75dc5977e6500669fd9418405ddd4207a164.zip
u-boot-ce3e75dc5977e6500669fd9418405ddd4207a164.tar.gz
u-boot-ce3e75dc5977e6500669fd9418405ddd4207a164.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/bloblist.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index 173129b..d0e128a 100644
--- a/include/bloblist.h
+++ b/include/bloblist.h
@@ -147,16 +147,6 @@ struct bloblist_rec {
u32 spare;
};
-/* access CONFIG_BLOBLIST_ADDR, dealing with it possibly not being defined */
-static inline ulong bloblist_addr(void)
-{
-#ifdef CONFIG_BLOBLIST_FIXED
- return CONFIG_BLOBLIST_ADDR;
-#else
- return 0;
-#endif
-}
-
/**
* bloblist_check_magic() - return a bloblist if the magic matches
*