diff options
Diffstat (limited to 'include/system-partitions.h')
-rw-r--r-- | include/system-partitions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/system-partitions.h b/include/system-partitions.h index 86de3612cc..e6d1a0f88b 100644 --- a/include/system-partitions.h +++ b/include/system-partitions.h @@ -2,6 +2,7 @@ #ifndef SYSTEM_PARTITIONS_H_ #define SYSTEM_PARTITIONS_H_ +#include <linux/types.h> #include <file-list.h> #ifdef CONFIG_SYSTEM_PARTITIONS @@ -37,4 +38,11 @@ static inline bool system_partitions_empty(void) #endif +static inline struct file_list *system_partitions_get_null(void) +{ + if (system_partitions_empty()) + return NULL; + return system_partitions_get(); +} + #endif |