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
@@ -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
+2 -2
View File
@@ -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);
}
/****************************************************************************
+1 -1
View File
@@ -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;
}
+4 -4
View File
@@ -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
}