From abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 15 Jul 2025 16:43:33 +0200 Subject: all: apply linter auto fixes ./tools/syz-env bin/golangci-lint run ./... --fix --- tools/syz-check/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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) } -- cgit mrf-deployment