File tree Expand file tree Collapse file tree
pkg/intel/metadata/cbnt/bootpolicy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,13 +82,9 @@ func (s *PMCBnT) Layout() []cbnt.LayoutField {
8282 Type : cbnt .ManifestFieldArrayStatic ,
8383 },
8484 {
85- ID : 3 ,
86- Name : "Data" ,
87- Size : func () uint64 {
88- size := uint64 (binary .Size (uint16 (0 )))
89- size += uint64 (binary .Size (s .DataSize ))
90- return size
91- },
85+ ID : 3 ,
86+ Name : "Data" ,
87+ Size : func () uint64 { return uint64 (binary .Size (uint16 (0 ))) + uint64 (binary .Size (s .DataSize )) },
9288 Value : func () any { return & s .Data },
9389 Type : cbnt .ManifestFieldArrayDynamicWithPrefix ,
9490 },
@@ -202,13 +198,9 @@ func (s *PMBG) Layout() []cbnt.LayoutField {
202198 Type : cbnt .ManifestFieldArrayStatic ,
203199 },
204200 {
205- ID : 2 ,
206- Name : "Data" ,
207- Size : func () uint64 {
208- size := uint64 (binary .Size (uint16 (0 )))
209- size += uint64 (s .DataSize )
210- return size
211- },
201+ ID : 2 ,
202+ Name : "Data" ,
203+ Size : func () uint64 { return uint64 (binary .Size (uint16 (0 ))) + uint64 (s .DataSize ) },
212204 Value : func () any { return & s .Data },
213205 Type : cbnt .ManifestFieldArrayDynamicWithPrefix ,
214206 },
You can’t perform that action at this time.
0 commit comments