Rename kfree to kmm_free for consistency with other naming conventions

This commit is contained in:
Gregory Nutt
2014-08-31 17:04:02 -06:00
parent 204e5b1162
commit 54fa3b0b59
137 changed files with 646 additions and 641 deletions
+3 -3
View File
@@ -520,7 +520,7 @@ struct cc1101_dev_s * cc1101_init(struct spi_dev_s * spi, uint8_t isrpin,
if (cc1101_reset(dev) < 0)
{
kfree(dev);
kmm_free(dev);
errno = EFAULT;
return NULL;
}
@@ -529,7 +529,7 @@ struct cc1101_dev_s * cc1101_init(struct spi_dev_s * spi, uint8_t isrpin,
if (cc1101_checkpart(dev) < 0)
{
kfree(dev);
kmm_free(dev);
errno = ENODEV;
return NULL;
}
@@ -579,7 +579,7 @@ int cc1101_deinit(struct cc1101_dev_s * dev)
/* Release external interrupt line */
kfree(dev);
kmm_free(dev);
return 0;
}
+2 -2
View File
@@ -983,7 +983,7 @@ static int cc3000_close(FAR struct file *filep)
mq_close(priv->queue);
priv->queue = 0;
kfree(priv->rx_buffer.pbuffer);
kmm_free(priv->rx_buffer.pbuffer);
priv->rx_buffer.pbuffer = 0;
}
@@ -1598,7 +1598,7 @@ errout_with_priv:
#endif
#ifdef CONFIG_CC3000_MULTIPLE
kfree(priv);
kmm_free(priv);
#endif
return ret;
}
+3 -3
View File
@@ -1198,9 +1198,9 @@ static int nrf24l01_unregister(FAR struct nrf24l01_dev_s *dev)
/* Free memory */
#ifdef CONFIG_WL_NRF24L01_RXSUPPORT
kfree(dev->rx_fifo);
kmm_free(dev->rx_fifo);
#endif
kfree(dev);
kmm_free(dev);
return OK;
}
@@ -1244,7 +1244,7 @@ int nrf24l01_register(FAR struct spi_dev_s *spi, FAR struct nrf24l01_config_s *c
#ifdef CONFIG_WL_NRF24L01_RXSUPPORT
if ((rx_fifo = kmalloc(CONFIG_WL_NRF24L01_RXFIFO_LEN)) == NULL)
{
kfree(dev);
kmm_free(dev);
return -ENOMEM;
}