/* free_internal_volumes - free internal volumes. @ubi: UBI device description object  */
static void free_internal_volumes(struct ubi_device *ubi)
/* free_internal_volumes - free internal volumes. @ubi: UBI device description object  */
static void free_internal_volumes(struct ubi_device *ubi)
{
	int i;
	for (i = ubi->vtbl_slots;
	     i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) {
		kfree(ubi->volumes[i]->eba_tbl);
		kfree(ubi->volumes[i]);
	}
}