Remove unused Misc device type

This commit is contained in:
jiangjianfeng 2025-12-04 07:22:51 +00:00 committed by Tate, Hongliang Tian
parent c4fdd390a9
commit e4a09f5503
2 changed files with 0 additions and 3 deletions

View File

@ -43,8 +43,6 @@ impl Debug for dyn Device {
pub enum DeviceType {
Char,
Block,
#[expect(dead_code)]
Misc,
}
/// Adds a device node in `/dev`.

View File

@ -75,7 +75,6 @@ impl From<DeviceType> for InodeType {
match type_ {
DeviceType::Char => InodeType::CharDevice,
DeviceType::Block => InodeType::BlockDevice,
DeviceType::Misc => InodeType::CharDevice,
}
}
}