Skip to content

Commit bc72363

Browse files
committed
struct_ops: we don't use MapSpec.Contents in struct_ops
Signed-off-by: shun159 <[email protected]>
1 parent c264d20 commit bc72363

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

map.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,6 @@ func (spec *MapSpec) createMap(inner *sys.FD) (_ *Map, err error) {
548548

549549
if spec.Key != nil || spec.Value != nil {
550550
if spec.Type == StructOpsMap {
551-
// we need drop meta entry here
552-
if len(spec.Contents) > 0 {
553-
spec.Contents = spec.Contents[1:]
554-
}
555-
556551
var b btf.Builder
557552
h, err := btf.NewHandle(&b)
558553
if err != nil {

0 commit comments

Comments
 (0)