diff --git a/arch/arm/src/stm32f7/stm32_bbsram.c b/arch/arm/src/stm32f7/stm32_bbsram.c index 6a1466ea1b..3b5b94ed2d 100644 --- a/arch/arm/src/stm32f7/stm32_bbsram.c +++ b/arch/arm/src/stm32f7/stm32_bbsram.c @@ -834,8 +834,6 @@ int stm32_bbsram_savepanic(int fileno, uint8_t *context, int length) bbf = g_bbsram[fileno].bbf; - DEBUGASSERT(bbf); - /* If the g_bbsram has been nulled out we return ENXIO. * * As once ensures we will keep the first dump. Checking the time for @@ -844,7 +842,7 @@ int stm32_bbsram_savepanic(int fileno, uint8_t *context, int length) * loop. */ - if (!bbf) + if (bbf == NULL) { ret = -ENXIO; }