Skip to content

Commit 4cb2396

Browse files
committed
fixup! HACK: rust: of: add as_raw()
1 parent b7dc260 commit 4cb2396

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl Node {
103103
/// Returns a reference to the underlying C `device_node` structure.
104104
pub fn as_raw(&self) -> *mut bindings::device_node {
105105
// SAFETY: `raw_node` is valid per the type invariant.
106-
unsafe { self.raw_node }
106+
self.raw_node
107107
}
108108

109109
/// Returns the name of the node.

0 commit comments

Comments
 (0)