summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 11:29:27 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 12:11:12 +0200
commit8259090d7394b667fbca4d4b05153e980a39db6b (patch)
treed8b5c1b2e6410ddedd35a652f87f665010279f1e
parent08de06feb3245859744a11e8dd9dde198ca33257 (diff)
vm: fix compiler warning
* vm/vm_user.c (vm_wire): Drop unused but set variable `host'.
-rw-r--r--vm/vm_user.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c
index 8c7a5d8f..c71e9f50 100644
--- a/vm/vm_user.c
+++ b/vm/vm_user.c
@@ -412,7 +412,6 @@ kern_return_t vm_wire(port, map, start, size, access)
vm_size_t size;
vm_prot_t access;
{
- host_t host;
boolean_t priv;
if (!IP_VALID(port))
@@ -430,8 +429,6 @@ kern_return_t vm_wire(port, map, start, size, access)
priv = ip_kotype(port) == IKOT_HOST_PRIV;
ip_unlock(port);
- host = (host_t) port->ip_kobject;
-
if (map == VM_MAP_NULL)
return KERN_INVALID_TASK;