We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1cd24a commit 01b3cb6Copy full SHA for 01b3cb6
rust/kernel/device.rs
@@ -185,7 +185,7 @@ impl Device {
185
/// Checks if property is present or not.
186
pub fn property_present(&self, name: &CStr) -> bool {
187
// SAFETY: By the invariant of `CStr`, `name` is null-terminated.
188
- unsafe { bindings::device_property_present(self.as_raw().cast_const(), name.as_ptr() as *const _) }
+ unsafe { bindings::device_property_present(self.as_raw().cast_const(), name.as_char_ptr()) }
189
}
190
191
0 commit comments