Skip to content

Commit

Permalink
xen/evtchn: Remove useless assignment in evtchn_alloc_unbound()
Browse files Browse the repository at this point in the history
The variable 'rc' is assigned later, that value is never used.

Signed-off-by: Frediano Ziglio <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
  • Loading branch information
freddy77 authored and Julien Grall committed Feb 5, 2024
1 parent 3ce2e1f commit 1cb7949
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xen/common/event_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1cb7949

Please sign in to comment.