Matthew Daley
2013-Jun-07 02:21 UTC
[PATCH] xen: remove unnecessary rc clearing from evtchn_reset
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