static int packet_read_list(char *data, size_t *pread_length) 
static int packet_read_list(char *data, size_t * pread_length) 
static int packet_read_list(char *data, size_t *pread_length){	struct list_head *ptemp_list;	int temp_count = 0;	int bytes_copied = 0;	int bytes_read = 0;	int remaining_bytes = 0;	char *pdest = data;	/* check if we have any packets */	if (0 == rbu_data.num_packets)		return -ENOMEM;	remaining_bytes = *pread_length;	bytes_read = rbu_data.packet_read_count;	ptemp_list = (&packet_data_head.list)->next;	while (!list_empty(ptemp_list)) {		bytes_copied = do_packet_read(pdest, ptemp_list,			remaining_bytes, bytes_read, &temp_count);		remaining_bytes -= bytes_copied;		bytes_read += bytes_copied;		pdest += bytes_copied;		/*		 * check if we reached end of buffer before reaching the		 * last packet		 */		if (remaining_bytes == 0)			break;		ptemp_list = ptemp_list->next;	}	/*finally set the bytes read */	*pread_length = bytes_read - rbu_data.packet_read_count;	rbu_data.packet_read_count = bytes_read;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ad6ce87e5bd4440a6ce9aa9f8cda795b9e902eff/dell_rbu.c/buggy/drivers/firmware/dell_rbu.c