diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-08 18:48:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-08 18:48:26 +0100 |
| commit | 36d1c4540af3ef058d68092e41af05aa4a8c5eca (patch) | |
| tree | 3657a5920e4b100749ccb9d2d555652e7b7e28e9 /sys/linux/init_iptables.go | |
| parent | 63ef857906766b3cafe4aebc43bc38edf42096c3 (diff) | |
all: fix gometalinter warnings
Fix typos, non-canonical code, remove dead code, etc.
Diffstat (limited to 'sys/linux/init_iptables.go')
| -rw-r--r-- | sys/linux/init_iptables.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/linux/init_iptables.go b/sys/linux/init_iptables.go index 86001b4c3..231bcfb77 100644 --- a/sys/linux/init_iptables.go +++ b/sys/linux/init_iptables.go @@ -64,9 +64,8 @@ func (arch *arch) generateNetfilterTable(g *prog.Gen, typ prog.Type, old prog.Ar // Assign the underflow entry once in a while. // We have it in underflow hooks, so no point in using it frequently. return pos - } else { - return offsets[g.Rand().Intn(len(offsets))] } + return offsets[g.Rand().Intn(len(offsets))] } // Assign offsets to used hooks. for hook := hookStart; hook < hookStart+hookCount; hook++ { |
