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:
parent
5ffd034f40
commit
51ed697de1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue