From 8095117313da96970c3ee300819ff6511b022fba Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 Apr 2019 16:54:45 +0300 Subject: all: fix some static analysis warnings Fix warnings produced by golangci-lint. Update #977 --- prog/decodeexec.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prog/decodeexec.go') diff --git a/prog/decodeexec.go b/prog/decodeexec.go index c57597437..57f08d0fc 100644 --- a/prog/decodeexec.go +++ b/prog/decodeexec.go @@ -110,6 +110,9 @@ func (dec *execDecoder) parse() { Addr: dec.read(), Size: dec.read(), }) + case execInstrEOF: + dec.commitCall() + return default: dec.commitCall() if instr >= uint64(len(dec.target.Syscalls)) { @@ -127,9 +130,6 @@ func (dec *execDecoder) parse() { return } } - case execInstrEOF: - dec.commitCall() - return } } } -- cgit mrf-deployment