drivers/acpid: Couple minor cleanups

This commit is contained in:
bjorn3
2026-04-14 21:54:25 +02:00
parent 6311833765
commit feff62ba38
+1 -12
View File
@@ -19,7 +19,7 @@ use syscall::error::{Error, Result};
use syscall::error::{EACCES, EBADF, EBADFD, EINVAL, EIO, EISDIR, ENOENT, ENOTDIR};
use syscall::flag::{MODE_DIR, MODE_FILE};
use syscall::flag::{O_ACCMODE, O_DIRECTORY, O_RDONLY, O_STAT, O_SYMLINK};
use syscall::{EOPNOTSUPP, EOVERFLOW, EPERM};
use syscall::{EOVERFLOW, EPERM};
use crate::acpi::{AcpiContext, AmlSymbols, SdtSignature};
@@ -397,17 +397,6 @@ impl SchemeSync for AcpiScheme<'_, '_> {
Ok(buf)
}
fn write(
&mut self,
_id: usize,
_buf: &[u8],
_offset: u64,
_fcntl: u32,
_ctx: &CallerCtx,
) -> Result<usize> {
Err(Error::new(EBADF))
}
fn call(
&mut self,
id: usize,