stm32f7 BBSRAM: stm32_bbsram: avoid assert in stm32_bbsram_savepanic. If panic happens before stm32_bbsram is initialized, stm32_bbsram_savepanic caused additional assert panic. Function has null pointer check, so drop DEBUGASSERT.

This commit is contained in:
Jussi Kivilinna 2017-10-13 07:37:51 -06:00 committed by Gregory Nutt
parent 5ffd034f40
commit 51ed697de1
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}