[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Remove uneeded 'else if' when closing event channels.



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 <tony@xxxxxxxxxxxxxxxxxx>

----------------------

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!


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.