/* kill_volumes - destroy all volumes. @ubi: UBI device description object  */
static void kill_volumes(struct ubi_device *ubi)
/* kill_volumes - destroy all volumes. @ubi: UBI device description object  */
static void kill_volumes(struct ubi_device *ubi)
{
	int i;
	for (i = 0; i < ubi->vtbl_slots; i++)
		if (ubi->volumes[i])
			ubi_free_volume(ubi, ubi->volumes[i]);
}