summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/kvm/address_space.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-05-11 12:23:25 -0700
committerShentubot <shentubot@google.com>2018-05-11 12:24:15 -0700
commit8deabbaae1fc45b042d551891080deef866dc0f8 (patch)
tree23aff1527fcb4f352a639159b693264d1ddd0c4b /pkg/sentry/platform/kvm/address_space.go
parent12c161f27865d0e389cd593c669bd740d7f24692 (diff)
Remove error return from AddressSpace.Release()
PiperOrigin-RevId: 196291289 Change-Id: Ie3487be029850b0b410b82416750853a6c4a2b00
Diffstat (limited to 'pkg/sentry/platform/kvm/address_space.go')
-rw-r--r--pkg/sentry/platform/kvm/address_space.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/sentry/platform/kvm/address_space.go b/pkg/sentry/platform/kvm/address_space.go
index a4b9198cc..173885867 100644
--- a/pkg/sentry/platform/kvm/address_space.go
+++ b/pkg/sentry/platform/kvm/address_space.go
@@ -200,8 +200,7 @@ func (as *addressSpace) Unmap(addr usermem.Addr, length uint64) {
}
// Release releases the page tables.
-func (as *addressSpace) Release() error {
+func (as *addressSpace) Release() {
as.Unmap(0, ^uint64(0))
as.pageTables.Release()
- return nil
}