Skip to content

Commit 9f64b89

Browse files
committed
kallsyms: return from parseSymbol() after third field
staticcheck helpfully flagged this as an ineffective break. Return instead. Signed-off-by: Timo Beckers <[email protected]>
1 parent e031491 commit 9f64b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/kallsyms/kallsyms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func parseSymbol(r *reader, types []rune) (s ksym, err error, skip bool) {
282282
s.mod = strings.Trim(r.Text(), "[]")
283283
// Ignore any future fields.
284284
default:
285-
break
285+
return
286286
}
287287
}
288288

0 commit comments

Comments
 (0)