diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-07-15 16:43:33 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-07-17 08:31:25 +0000 |
| commit | abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch) | |
| tree | 522a8cc072d07d85c8a1d37b5b3ab89483599b48 /tools/syz-check | |
| parent | a81f309b57265e5760b926274e1f1681e7550e41 (diff) | |
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'tools/syz-check')
| -rw-r--r-- | tools/syz-check/check.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index f153db6d1..8021e8720 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -620,7 +620,7 @@ func checkNetlinkAttr(typ *prog.StructType, policy nlaPolicy) string { // This is a common case that occurs several times: limit on min value of 1. // Not worth fixing (at least not in initial batch), it just crosses out a // single value of 0, which we shuold test anyway. - if !(policy.validation == NLA_VALIDATE_MIN && policy.minVal == 1) { + if policy.validation != NLA_VALIDATE_MIN || policy.minVal != 1 { return fmt.Sprintf("bad min value %v, expect %v", int64(valMin), policy.minVal) } |
