The memory used to be in its own memory region, but is now a part of
a larger memory region which is already being freed anyway.
Change-Id: Ice3174cec76e07112a1997b969dc3f47f573514c
* allocated memory.
*/
u32_t cmd;
- int i;
/* Disable FIS receive. */
cmd = port_read(ps, AHCI_PORT_CMD);
if (ps->pad_base != NULL)
free_contig(ps->pad_base, ps->pad_size);
- /* The first command table is part of the primary memory page. */
- for (i = 1; i < hba_state.nr_cmds; i++)
- if (ps->ct_base[i] != NULL)
- free_contig(ps->ct_base[i], AHCI_CT_SIZE);
-
free_contig(ps->mem_base, ps->mem_size);
}