/* This function destroys a wear leveling entry and removes the reference from the lookup table.  */
static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e)
/* This function destroys a wear leveling entry and removes the reference from the lookup table.  */
static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e)
{
	ubi->lookuptbl[e->pnum] = NULL;
	kmem_cache_free(ubi_wl_entry_slab, e);
}