diff --git a/lib/ftl/ftl_core.c b/lib/ftl/ftl_core.c index 7e578fd6b..c1ff799d8 100644 --- a/lib/ftl/ftl_core.c +++ b/lib/ftl/ftl_core.c @@ -211,6 +211,7 @@ ftl_wptr_from_band(struct ftl_band *band) } } + assert(false); return NULL; } diff --git a/lib/ftl/ftl_restore.c b/lib/ftl/ftl_restore.c index dfc04f091..393d16e62 100644 --- a/lib/ftl/ftl_restore.c +++ b/lib/ftl/ftl_restore.c @@ -1273,5 +1273,6 @@ ftl_restore_device(struct ftl_restore *restore, ftl_restore_fn cb) /* If restore_device is called, there must be at least one valid band */ rband = ftl_restore_next_band(restore); + assert(rband); return ftl_restore_tail_md(rband); }