Skip to content

Commit 5bdb850

Browse files
committed
Add Ok(T) wrapper
Signed-off-by: Wayne Campbell <[email protected]>
1 parent 51d0d59 commit 5bdb850

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/android/process.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ impl ProcessInner {
186186
strong: bool,
187187
thread: Option<&Thread>,
188188
) -> KernelResult<Option<NodeRef>> {
189-
self.get_existing_node(ptr, cookie)?
190-
.map(|node| self.new_node_ref(node, strong, thread))
189+
Ok(self
190+
.get_existing_node(ptr, cookie)?
191+
.map(|node| self.new_node_ref(node, strong, thread)))
191192
}
192193

193194
fn register_thread(&mut self) -> bool {

0 commit comments

Comments
 (0)