Condition out most of the recent NXFFS changes for NAND. NXFFS will never be able to support NAND
This commit is contained in:
parent
d125a28b0d
commit
0a456987c6
|
@ -1482,12 +1482,14 @@ static void sam_freelinklist(struct sam_dmach_s *dmach)
|
|||
|
||||
while (desc != NULL)
|
||||
{
|
||||
/* Valid, in-use descriptors never have saddr == 0 */
|
||||
|
||||
DEBUGASSERT(desc->saddr != 0);
|
||||
|
||||
/* Get the physical address of the next desriptor in the list */
|
||||
|
||||
paddr = desc->dscr;
|
||||
|
||||
DEBUGASSERT(desc->saddr != 0);
|
||||
|
||||
/* Free the descriptor by simply nullifying it */
|
||||
|
||||
memset(desc, 0, sizeof(struct dma_linklist_s));
|
||||
|
|
Loading…
Reference in New Issue