Skip to content

Commit deacefa

Browse files
authored
chore: remove unused FdtProperty::value_offset field (#30)
1 parent 77ba283 commit deacefa

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/fdt/property.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use crate::Property;
2020
pub struct FdtProperty<'a> {
2121
name: &'a str,
2222
value: &'a [u8],
23-
value_offset: usize,
2423
}
2524

2625
impl<'a> Property<'a> for FdtProperty<'a> {
@@ -140,11 +139,7 @@ impl<'a> FdtPropIter<'a> {
140139
.data
141140
.get(prop_offset..prop_offset + len)
142141
.expect("Fdt should be valid");
143-
return Some(FdtProperty {
144-
name,
145-
value,
146-
value_offset: prop_offset,
147-
});
142+
return Some(FdtProperty { name, value });
148143
}
149144
FdtToken::Nop => *offset += FDT_TAGSIZE,
150145
_ => return None,

0 commit comments

Comments
 (0)