mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
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>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user