]> xenbits.xensource.com Git - xen.git/commitdiff
xen/evtchn: Remove useless assignment in evtchn_alloc_unbound()
authorFrediano Ziglio <frediano.ziglio@cloud.com>
Mon, 5 Feb 2024 10:46:37 +0000 (10:46 +0000)
committerJulien Grall <jgrall@amazon.com>
Mon, 5 Feb 2024 21:17:44 +0000 (21:17 +0000)
The variable 'rc' is assigned later, that value is never used.

Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/event_channel.c

index a7a004a0842985c5451116accc69d766434e0e87..15aec5dcbbdaf24e1dd24983bf4ac93b61e32606 100644 (file)
@@ -324,8 +324,6 @@ int evtchn_alloc_unbound(evtchn_alloc_unbound_t *alloc, evtchn_port_t port)
         goto out;
     }
 
-    rc = 0;
-
     chn = evtchn_from_port(d, port);
 
     rc = xsm_evtchn_unbound(XSM_TARGET, d, chn, alloc->remote_dom);