Remove stale comment since a1b46ece05

reviewable/pr1251/r21
Tamir Duberstein 1 month ago
parent 4b5ba53a36
commit b6daf463e6

@ -464,7 +464,6 @@ impl Btf {
pub fn to_bytes(&self) -> Vec<u8> {
// Safety: btf_header is POD
let mut buf = unsafe { bytes_of::<btf_header>(&self.header).to_vec() };
// Skip the first type since it's always BtfType::Unknown for type_by_id to work
buf.extend(self.types.to_bytes());
buf.put(self.strings.as_slice());
buf

Loading…
Cancel
Save