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.
FdtProperty::value_offset
1 parent 77ba283 commit deacefaCopy full SHA for deacefa
1 file changed
src/fdt/property.rs
@@ -20,7 +20,6 @@ use crate::Property;
20
pub struct FdtProperty<'a> {
21
name: &'a str,
22
value: &'a [u8],
23
- value_offset: usize,
24
}
25
26
impl<'a> Property<'a> for FdtProperty<'a> {
@@ -140,11 +139,7 @@ impl<'a> FdtPropIter<'a> {
140
139
.data
141
.get(prop_offset..prop_offset + len)
142
.expect("Fdt should be valid");
143
- return Some(FdtProperty {
144
- name,
145
- value,
146
- value_offset: prop_offset,
147
- });
+ return Some(FdtProperty { name, value });
148
149
FdtToken::Nop => *offset += FDT_TAGSIZE,
150
_ => return None,
0 commit comments