/* mpt_inactive_raid_list_free - This clears this link list. @ioc : pointer to per adapter structure  */
static void mpt_inactive_raid_list_free(MPT_ADAPTER *ioc)
/* mpt_inactive_raid_list_free - This clears this link list. @ioc : pointer to per adapter structure  */
static void mpt_inactive_raid_list_free(MPT_ADAPTER *ioc)
{
	struct inactive_raid_component_info *component_info, *pNext;
	if (list_empty(&ioc->raid_data.inactive_list))
		return;
	mutex_lock(&ioc->raid_data.inactive_list_mutex);
	list_for_each_entry_safe(component_info, pNext,
	    &ioc->raid_data.inactive_list, list) {
		list_del(&component_info->list);
		kfree(component_info);
	}
	mutex_unlock(&ioc->raid_data.inactive_list_mutex);
}