mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename kfree to kmm_free for consistency with other naming conventions
This commit is contained in:
@@ -2310,7 +2310,7 @@ int cdcacm_classobject(int minor, FAR struct usbdevclass_driver_s **classdev)
|
||||
return OK;
|
||||
|
||||
errout_with_class:
|
||||
kfree(alloc);
|
||||
kmm_free(alloc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -2415,7 +2415,7 @@ void cdcacm_uninitialize(FAR void *handle)
|
||||
* free the memory resources.
|
||||
*/
|
||||
|
||||
kfree(priv);
|
||||
kmm_free(priv);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@@ -2445,7 +2445,7 @@ void cdcacm_uninitialize(FAR void *handle)
|
||||
|
||||
/* And free the driver structure */
|
||||
|
||||
kfree(priv);
|
||||
kmm_free(priv);
|
||||
|
||||
#else
|
||||
/* For the case of the composite driver, there is a two pass
|
||||
|
||||
@@ -851,7 +851,7 @@ FAR void *composite_initialize(void)
|
||||
return (FAR void *)alloc;
|
||||
|
||||
errout_with_alloc:
|
||||
kfree(alloc);
|
||||
kmm_free(alloc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -901,7 +901,7 @@ void composite_uninitialize(FAR void *handle)
|
||||
|
||||
/* Then free the composite driver state structure itself */
|
||||
|
||||
kfree(priv);
|
||||
kmm_free(priv);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -2368,6 +2368,6 @@ int usbdev_serialinitialize(int minor)
|
||||
errout_with_class:
|
||||
usbdev_unregister(&drvr->drvr);
|
||||
errout_with_alloc:
|
||||
kfree(alloc);
|
||||
kmm_free(alloc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1771,7 +1771,7 @@ void usbmsc_uninitialize(FAR void *handle)
|
||||
* free the memory resources.
|
||||
*/
|
||||
|
||||
kfree(priv);
|
||||
kmm_free(priv);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@@ -1818,13 +1818,13 @@ void usbmsc_uninitialize(FAR void *handle)
|
||||
usbmsc_lununinitialize(&priv->luntab[i]);
|
||||
}
|
||||
|
||||
kfree(priv->luntab);
|
||||
kmm_free(priv->luntab);
|
||||
|
||||
/* Release the I/O buffer */
|
||||
|
||||
if (priv->iobuffer)
|
||||
{
|
||||
kfree(priv->iobuffer);
|
||||
kmm_free(priv->iobuffer);
|
||||
}
|
||||
|
||||
/* Uninitialize and release the driver structure */
|
||||
@@ -1840,6 +1840,6 @@ void usbmsc_uninitialize(FAR void *handle)
|
||||
* second pass because of priv->thpid == 0)
|
||||
*/
|
||||
|
||||
kfree(priv);
|
||||
kmm_free(priv);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user