diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:02:46 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:02:46 +0300 |
| commit | b97967ab660243b723f246db03c2e4a82e125f3f (patch) | |
| tree | d30ef3f9dbbc33453c868282b749018659fb6a6b /src/initrd.c | |
| parent | 122374c362ba8bb9082385da3c82e264ab594f15 (diff) | |
| download | kmi-b97967ab660243b723f246db03c2e4a82e125f3f.tar.gz kmi-b97967ab660243b723f246db03c2e4a82e125f3f.zip | |
simplify assertions
+ No real point having multiple different levels of assertions, just say
you assert something and be done with it
Diffstat (limited to 'src/initrd.c')
| -rw-r--r-- | src/initrd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/initrd.c b/src/initrd.c index 242e373..489d6f5 100644 --- a/src/initrd.c +++ b/src/initrd.c @@ -120,7 +120,7 @@ pm_t get_initrdtop(const void *fdt) void *initrd_end_ptr = (void *)fdt_getprop(fdt, chosen_offset, "linux,initrd-end", &len); - catastrophic_assert(initrd_end_ptr); + assert(initrd_end_ptr); return (pm_t)fdt_load_int_ptr(len / 4, initrd_end_ptr); } @@ -132,7 +132,7 @@ pm_t get_initrdbase(const void *fdt) void *initrd_base_ptr = (void *)fdt_getprop(fdt, chosen_offset, "linux,initrd-start", &len); - catastrophic_assert(initrd_base_ptr); + assert(initrd_base_ptr); return (pm_t)fdt_load_int_ptr(len / 4, initrd_base_ptr); } |
