From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Daley Subject: [PATCH] xen: remove unnecessary rc clearing from evtchn_reset Date: Fri, 7 Jun 2013 14:21:21 +1200 Message-ID: <1370571681-15188-1-git-send-email-mattjd@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Matthew Daley , Keir Fraser List-Id: xen-devel@lists.xenproject.org Signed-off-by: Matthew Daley 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