Ejemplo n.º 1
0
void yaffs_deinit_raw_tnodes_and_objs(yaffs_dev_t *dev)
{
	if(dev->allocator){
		yaffs_deinit_raw_tnodes(dev);
		yaffs_deinit_raw_objs(dev);

		YFREE(dev->allocator);
		dev->allocator=NULL;
	} else
		YBUG();
}
void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev)
{
	if (dev->allocator) {
		yaffs_deinit_raw_tnodes(dev);
		yaffs_deinit_raw_objs(dev);

		kfree(dev->allocator);
		dev->allocator = NULL;
	} else {
		YBUG();
	}
}