ia64/xen-unstable

changeset 10622:ffbdd113c74b

Remove use of unlikely -- it's not defined on all systems.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author chris@kneesaa.uk.xensource.com
date Fri Jun 30 14:15:12 2006 +0100 (2006-06-30)
parents 9dbcf482f600
children c1119ff85f4e
files tools/xenstat/libxenstat/src/xenstat.c
line diff
     1.1 --- a/tools/xenstat/libxenstat/src/xenstat.c	Fri Jun 30 13:33:20 2006 +0100
     1.2 +++ b/tools/xenstat/libxenstat/src/xenstat.c	Fri Jun 30 14:15:12 2006 +0100
     1.3 @@ -760,10 +760,10 @@ static int read_attributes_vbd(const cha
     1.4  
     1.5  	sprintf(file_name, "%s/%s/%s", SYSFS_VBD_PATH, vbd_directory, what);
     1.6  	fd = open(file_name, O_RDONLY, 0);
     1.7 -	if (unlikely(fd==-1)) return -1;
     1.8 +	if (fd==-1) return -1;
     1.9  	num_read = read(fd, ret, cap - 1);
    1.10  	close(fd);
    1.11 -	if (unlikely(num_read<=0)) return -1;
    1.12 +	if (num_read<=0) return -1;
    1.13  	ret[num_read] = '\0';
    1.14  	return num_read;
    1.15  }