int ret; 
unsigned long size = end - start + 1; int ret = 0; 
static int adjust_memory(struct pcmcia_socket *s, adjust_t *adj){	u_long base, num;	struct socket_data *data = s->resource_data;	int ret;	base = adj->resource.memory.Base;	num = adj->resource.memory.Size;	if ((num == 0) || (base+num-1 < base))		return CS_BAD_SIZE;	ret = CS_SUCCESS;	down(&rsrc_sem);	switch (adj->Action) {	case ADD_MANAGED_RESOURCE:		ret = add_interval(&data->mem_db, base, num);		break;	case REMOVE_MANAGED_RESOURCE:		ret = sub_interval(&data->mem_db, base, num);		if (ret == CS_SUCCESS) {			struct pcmcia_socket *socket;			down_read(&pcmcia_socket_list_rwsem);			list_for_each_entry(socket, &pcmcia_socket_list, socket_list)				release_cis_mem(socket);			up_read(&pcmcia_socket_list_rwsem);		}		break;	default:		ret = CS_UNSUPPORTED_FUNCTION;	}	up(&rsrc_sem);	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/22916638b124e859b595099bd0c86a1e09e767fb/rsrc_nonstatic.c/clean/drivers/pcmcia/rsrc_nonstatic.c