* [PATCH] xen: remove unnecessary rc clearing from evtchn_reset
@ 2013-06-07 2:21 Matthew Daley
0 siblings, 0 replies; only message in thread
From: Matthew Daley @ 2013-06-07 2:21 UTC (permalink / raw)
To: xen-devel; +Cc: Matthew Daley, Keir Fraser
Signed-off-by: Matthew Daley <mattjd@gmail.com>
diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index 64c976b..1415c31 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -958,16 +958,14 @@ static long evtchn_reset(evtchn_reset_t *r)
rc = xsm_evtchn_reset(XSM_TARGET, current->domain, d);
if ( rc )
goto out;
for ( i = 0; port_is_valid(d, i); i++ )
(void)__evtchn_close(d, i);
- rc = 0;
-
out:
rcu_unlock_domain(d);
return rc;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-07 2:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 2:21 [PATCH] xen: remove unnecessary rc clearing from evtchn_reset Matthew Daley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).