chore: simplify SysResult

This commit is contained in:
Paul Pan 2024-05-06 00:30:41 +08:00
parent 2db111e730
commit e46ca5a288

View File

@ -65,7 +65,7 @@ impl UntypedCap<'_> {
1 << self.block_bits()
}
pub fn retype(&mut self, obj_type: ObjectType, user_obj_bits: usize, slots: &mut CNodeObject) -> SysResult<()> {
pub fn retype(&mut self, obj_type: ObjectType, user_obj_bits: usize, slots: &mut CNodeObject) -> SysResult {
/*
* vallina seL4: `decode_untiped_invocation`
* - _service CPTR to an untyped object.