summaryrefslogtreecommitdiff
path: root/include/bloblist.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-22 15:07:27 +0300
committerTom Rini <trini@konsulko.com>2022-02-09 07:07:59 +0300
commitce3e75dc5977e6500669fd9418405ddd4207a164 (patch)
tree57525a0e0cee2fcdbc96c840fda3bb887fd3a979 /include/bloblist.h
parent097ff01fb98a6f4ad03eed8cf639a5cc90fb6619 (diff)
downloadu-boot-ce3e75dc5977e6500669fd9418405ddd4207a164.tar.xz
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/bloblist.h')
-rw-r--r--include/bloblist.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index 173129b027..d0e128acf1 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
*