mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.636.1.3 (3fcdbd654OqdrTB4O2_GaQpn0Yh7Vw)
xc_private.h: Propagate return values as far as possible.
This commit is contained in:
1 parent
1359a44972
commit
608c4d32db
1 file changed
-4
@@ -105,8 +105,6 @@ static inline int do_dom0_op(int xc_handle, dom0_op_t *op)
|
||||
goto out2;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
||||
out2: (void)munlock(op, sizeof(*op));
|
||||
out1: return ret;
|
||||
}
|
||||
@@ -128,8 +126,6 @@ static inline int do_network_op(int xc_handle, network_op_t *op)
|
||||
if ( (ret = do_xen_hypercall(xc_handle, &hypercall)) < 0 )
|
||||
goto out2;
|
||||
|
||||
ret = 0;
|
||||
|
||||
out2: (void)munlock(op, sizeof(*op));
|
||||
out1: return ret;
|
||||
}
|
||||
|
||||