mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
Rename kfree to kmm_free for consistency with other naming conventions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user