From: Tony Breeds Subject: [PATCH] Remove uneeded 'else if' when closing event channels. Date: Fri, 2 Dec 2005 16:05:19 +1100 Message-ID: <20051202050519.GB25348@bakeyournoodle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-Devel Cc: Rusty Russell List-Id: xen-devel@lists.xenproject.org Hi all, As far as I can see the remote domain cannot change from underneath us. Which means that the test for that situation is pointless This patch removes it. Signed-off-by: Tony Breeds ---------------------- diff -r f62f9b1732b9 xen/common/event_channel.c --- a/xen/common/event_channel.c Thu Dec 1 19:43:04 2005 +++ b/xen/common/event_channel.c Fri Dec 2 15:54:25 2005 @@ -342,11 +342,6 @@ goto again; } } - else if ( d2 != chn1->u.interdomain.remote_dom ) - { - rc = -EINVAL; - goto out; - } port2 = chn1->u.interdomain.remote_port; BUG_ON(!port_is_valid(d2, port2)); Yours Tony linux.conf.au http://linux.conf.au/ || http://lca2006.linux.org.au/ Jan 23-28 2006 The Australian Linux Technical Conference!