diff options
author | Asahi Lina <[email protected]> | 2023-04-03 18:48:10 +0900 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-04-12 18:41:04 +0200 |
commit | 46384d0990bf99ed8b597e8794ea581e2a647710 (patch) | |
tree | 2a522f2c675d53718ab0446833ab8f9054ff83b2 /rust/kernel | |
parent | 31d95c2f99bf16e59b996cf6a227e198a64e835c (diff) |
rust: error: Rename to_kernel_errno() -> to_errno()
This is kernel code, so specifying "kernel" is redundant. Let's simplify
things and just call it to_errno().
Reviewed-by: Gary Guo <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Signed-off-by: Asahi Lina <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel')
-rw-r--r-- | rust/kernel/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs index 5b9751d7ff1d..35894fa35efe 100644 --- a/rust/kernel/error.rs +++ b/rust/kernel/error.rs @@ -73,7 +73,7 @@ pub struct Error(core::ffi::c_int); impl Error { /// Returns the kernel error code. - pub fn to_kernel_errno(self) -> core::ffi::c_int { + pub fn to_errno(self) -> core::ffi::c_int { self.0 } } |