*===========================================================================*/
PUBLIC void delivermsg(struct proc *rp)
{
- int r;
+ int r = OK;
assert(rp->p_misc_flags & MF_DELIVERMSG);
assert(rp->p_delivermsg.m_source != NONE);
rp->p_name,
rp->p_endpoint);
r = EFAULT;
- } else {
- /* Indicate message has been delivered; address is 'used'. */
- rp->p_delivermsg.m_source = NONE;
- rp->p_misc_flags &= ~MF_DELIVERMSG;
- r = OK;
}
+ /* Indicate message has been delivered; address is 'used'. */
+ rp->p_delivermsg.m_source = NONE;
+ rp->p_misc_flags &= ~MF_DELIVERMSG;
+
if(!(rp->p_misc_flags & MF_CONTEXT_SET)) {
rp->p_reg.retreg = r;
}