[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] event_channel: Fix uninitialised variable build error.
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1290414543 0 # Node ID 899131a8f9d2b99acc4bbe18593952d30446e71b # Parent 117d82dcd6ba785a702e2d0cfdb93642d84da1b9 event_channel: Fix uninitialised variable build error. Signed-off-by: Yang Zhang <yang.z.zhang@xxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxx> --- xen/common/event_channel.c | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff -r 117d82dcd6ba -r 899131a8f9d2 xen/common/event_channel.c --- a/xen/common/event_channel.c Fri Nov 19 18:55:18 2010 +0000 +++ b/xen/common/event_channel.c Mon Nov 22 08:29:03 2010 +0000 @@ -345,15 +345,14 @@ static long evtchn_bind_pirq(evtchn_bind chn = evtchn_from_port(d, port); d->pirq_to_evtchn[pirq] = port; - if ( !is_hvm_domain(d) ) - { - rc = pirq_guest_bind( - v, pirq, !!(bind->flags & BIND_PIRQ__WILL_SHARE)); - if ( rc != 0 ) - { - d->pirq_to_evtchn[pirq] = 0; - goto out; - } + rc = (!is_hvm_domain(d) + ? pirq_guest_bind( + v, pirq, !!(bind->flags & BIND_PIRQ__WILL_SHARE)) + : 0); + if ( rc != 0 ) + { + d->pirq_to_evtchn[pirq] = 0; + goto out; } chn->state = ECS_PIRQ; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |