list_for_each_safe(tmp, next, &slot_list) { slot = list_entry(tmp, struct slot, slot_list); if(slot->bus == bus) { 
list_for_each_entry_safe(slot, tmp, &slot_list, slot_list) { if (slot->bus == bus) { list_del(&slot->slot_list); slots--;  
cpci_hp_unregister_bus(struct pci_bus *bus){	struct slot *slot;	struct list_head *tmp;	struct list_head *next;	int status;	down_write(&list_rwsem);	if(!slots) {		up_write(&list_rwsem);		return -1;	}	list_for_each_safe(tmp, next, &slot_list) {		slot = list_entry(tmp, struct slot, slot_list);		if(slot->bus == bus) {			dbg("deregistering slot %s", slot->hotplug_slot->name);			status = pci_hp_deregister(slot->hotplug_slot);			if(status) {				err("pci_hp_deregister failed with error %d",				    status);				return status;			}			list_del(&slot->slot_list);			slots--;		}	}	up_write(&list_rwsem);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/bcc488ab02254a6e60d749187a632dc3d642d4f8/cpci_hotplug_core.c/clean/drivers/pci/hotplug/cpci_hotplug_core.c