aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/lfstack_32bit.go
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2016-04-06 18:43:23 +1000
committerDave Cheney <dave@cheney.net>2016-04-06 21:04:43 +0000
commit0c81248bf46f611b56e3ab38b4d83e449b3c8636 (patch)
tree5ecc59d0b4a326a4c856b89840feafdd9f49eddd /src/runtime/lfstack_32bit.go
parent04945edd40fff4d66321a4f98c1bb070b6356008 (diff)
downloadgo-0c81248bf46f611b56e3ab38b4d83e449b3c8636.tar.xz
runtime: remove unused return value from lfstackUnpack
None of the two places that call lfstackUnpack use the second argument. This simplifies a followup CL that merges the lfstack{Pack,Unpack} implementations. Change-Id: I3c93f6259da99e113d94f8c8027584da79c1ac2c Reviewed-on: https://go-review.googlesource.com/21595 Run-TryBot: Dave Cheney <dave@cheney.net> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/lfstack_32bit.go')
-rw-r--r--src/runtime/lfstack_32bit.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/lfstack_32bit.go b/src/runtime/lfstack_32bit.go
index 36811c1e47..2f59e0212e 100644
--- a/src/runtime/lfstack_32bit.go
+++ b/src/runtime/lfstack_32bit.go
@@ -14,8 +14,6 @@ func lfstackPack(node *lfnode, cnt uintptr) uint64 {
return uint64(uintptr(unsafe.Pointer(node)))<<32 | uint64(cnt)
}
-func lfstackUnpack(val uint64) (node *lfnode, cnt uintptr) {
- node = (*lfnode)(unsafe.Pointer(uintptr(val >> 32)))
- cnt = uintptr(val)
- return
+func lfstackUnpack(val uint64) *lfnode {
+ return (*lfnode)(unsafe.Pointer(uintptr(val >> 32)))
}