|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Remove use of unlikely -- it's not define
# HG changeset patch
# User chris@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID ffbdd113c74b396087fd000ea5e4e4d3a2c8f6be
# Parent 9dbcf482f60035aa024ec41569dba3715848b2b8
Remove use of unlikely -- it's not defined on all systems.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx>
---
tools/xenstat/libxenstat/src/xenstat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 9dbcf482f600 -r ffbdd113c74b tools/xenstat/libxenstat/src/xenstat.c
--- a/tools/xenstat/libxenstat/src/xenstat.c Fri Jun 30 13:33:20 2006 +0100
+++ b/tools/xenstat/libxenstat/src/xenstat.c Fri Jun 30 14:15:12 2006 +0100
@@ -760,10 +760,10 @@ static int read_attributes_vbd(const cha
sprintf(file_name, "%s/%s/%s", SYSFS_VBD_PATH, vbd_directory, what);
fd = open(file_name, O_RDONLY, 0);
- if (unlikely(fd==-1)) return -1;
+ if (fd==-1) return -1;
num_read = read(fd, ret, cap - 1);
close(fd);
- if (unlikely(num_read<=0)) return -1;
+ if (num_read<=0) return -1;
ret[num_read] = '\0';
return num_read;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Remove use of unlikely -- it's not defined on all systems.,
Xen patchbot-unstable <=
|
|
|
|
|