aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-11-03 15:29:07 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-11-03 16:42:57 +0100
commitb35fad31e9c2d4a970d051deff80ec7cc4c3e459 (patch)
treec90d4241ce8c4000fd2ee78866f397d9420b8cfd
parent99d946ccff4e757395f5607f06645c79c2c951df (diff)
downloadsyzkaller-b35fad31e9c2d4a970d051deff80ec7cc4c3e459.tar.gz
pkg/csource: remove duplicate check
Remove a check that was mistakenly added with devlink_pci feature and is duplicate of the existing check. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
-rw-r--r--pkg/csource/options.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/csource/options.go b/pkg/csource/options.go
index 455a65c15..57e9fc9dc 100644
--- a/pkg/csource/options.go
+++ b/pkg/csource/options.go
@@ -175,9 +175,6 @@ func DefaultOpts(cfg *mgrconfig.Config) Options {
if cfg.Sandbox == "" || cfg.Sandbox == "setuid" {
opts.EnableNetReset = false
}
- if cfg.Sandbox == "" || cfg.Sandbox == "setuid" {
- opts.EnableNetReset = false
- }
if err := opts.Check(cfg.TargetOS); err != nil {
panic(fmt.Sprintf("DefaultOpts created bad opts: %v", err))
}