aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-04-19 20:38:10 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2017-04-19 20:03:51 +0000
commitff7994ac1030525be5229a9f665d01ed50cd945e (patch)
tree4c326751a7ec56d3473e0f690c822aca87919bf6 /src/runtime
parent78510bd17c35932cd45f1433adb21aeaa0587767 (diff)
downloadgo-ff7994ac1030525be5229a9f665d01ed50cd945e.tar.xz
all: remove redundant returns
Returns at the end of func bodies where the funcs have no return values are pointless. Change-Id: I0da5ea78671503e41a9f56dd770df8c919310ce5 Reviewed-on: https://go-review.googlesource.com/41093 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mgclarge.go1
-rw-r--r--src/runtime/runtime_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/mgclarge.go b/src/runtime/mgclarge.go
index 3c2b12fe8e..757e88d1d9 100644
--- a/src/runtime/mgclarge.go
+++ b/src/runtime/mgclarge.go
@@ -240,7 +240,6 @@ func (root *mTreap) removeSpan(span *mspan) {
}
}
root.removeNode(t)
- return
}
// scavengetreap visits each node in the treap and scavenges the
diff --git a/src/runtime/runtime_test.go b/src/runtime/runtime_test.go
index 666bc0a546..e9bc256712 100644
--- a/src/runtime/runtime_test.go
+++ b/src/runtime/runtime_test.go
@@ -79,7 +79,6 @@ func defer1() {
panic("bad recover")
}
}(1, 2, 3)
- return
}
func BenchmarkDefer10(b *testing.B) {