]> Cypherpunks repositories - gostls13.git/commit
internal/poll, net, os: remove poll.Splice syscall name return value
authorTobias Klauser <tklauser@distanz.ch>
Tue, 2 Apr 2024 09:23:47 +0000 (11:23 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 2 Apr 2024 21:49:26 +0000 (21:49 +0000)
commite074fcc945da2ed2384d562425a7e15b24d15b55
tree59c9d4038bb8ec8fdf6dd9a197588ac84005ea7b
parentb6efc3b755b74147a3700ad51773b01fa68f76e8
internal/poll, net, os: remove poll.Splice syscall name return value

The sc return value of internal/poll.Splice is always set to the same
value "splice" in the error case and then passed to wrapSyscallError.
Move that value to the wrapSyscallError calls to simplify the code a
bit.

Change-Id: I98104d755da68ff9f301fabc43c2618fda21a175
Reviewed-on: https://go-review.googlesource.com/c/go/+/575655
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
src/internal/poll/splice_linux.go
src/internal/poll/splice_linux_test.go
src/net/splice_linux.go
src/net/splice_linux_test.go
src/os/readfrom_linux_test.go
src/os/zero_copy_linux.go