diff options
author | chris@kneesaa.uk.xensource.com <chris@kneesaa.uk.xensource.com> | 2006-06-30 14:15:12 +0100 |
---|---|---|
committer | chris@kneesaa.uk.xensource.com <chris@kneesaa.uk.xensource.com> | 2006-06-30 14:15:12 +0100 |
commit | 5c561080e2331687bcea8443dacfa9857fe42623 (patch) | |
tree | f86f36157035bd52683b9d1a63ecfa0b972eac2c /tools/xenstat | |
parent | 7550e5d3f98d7cfe4fb74750e5557b6a355ea3bb (diff) | |
download | xen-5c561080e2331687bcea8443dacfa9857fe42623.tar.gz xen-5c561080e2331687bcea8443dacfa9857fe42623.tar.bz2 xen-5c561080e2331687bcea8443dacfa9857fe42623.zip |
Remove use of unlikely -- it's not defined on all systems.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r-- | tools/xenstat/libxenstat/src/xenstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xenstat/libxenstat/src/xenstat.c b/tools/xenstat/libxenstat/src/xenstat.c index d6521f8edf..06e0142cb0 100644 --- a/tools/xenstat/libxenstat/src/xenstat.c +++ b/tools/xenstat/libxenstat/src/xenstat.c @@ -760,10 +760,10 @@ static int read_attributes_vbd(const char *vbd_directory, const char *what, char 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; } |