WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Remove use of unlikely -- it's not define

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Remove use of unlikely -- it's not defined on all systems.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Jun 2006 15:40:57 +0000
Delivery-date: Fri, 30 Jun 2006 08:47:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=