Skip to content

Commit

Permalink
delete useless code
Browse files Browse the repository at this point in the history
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
  • Loading branch information
ningmingxiao committed Feb 15, 2022
1 parent 6981110 commit 10ba930
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions prog.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,6 @@ func newProgramWithOptions(spec *ProgramSpec, opts ProgramOptions, handles *hand
defer btfHandle.Close()

targetBTF = btfHandle.Spec()
if err != nil {
return nil, fmt.Errorf("load target BTF: %w", err)
}
}

target, err := resolveBTFType(targetBTF, spec.AttachTo, spec.Type, spec.AttachType)
Expand Down

0 comments on commit 10ba930

Please sign in to comment.