Condition out most of the recent NXFFS changes for NAND. NXFFS will never be able to support NAND

This commit is contained in:
Gregory Nutt 2013-12-03 13:11:11 -06:00
parent d125a28b0d
commit 0a456987c6
1 changed files with 4 additions and 2 deletions

View File

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