[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] ipc/mach_debug.c (mach_port_kernel_object): remove unnecessa
From: |
Marin Ramesa |
Subject: |
[PATCH 3/3] ipc/mach_debug.c (mach_port_kernel_object): remove unnecessary cast |
Date: |
Wed, 11 Dec 2013 00:01:36 +0100 |
Member ip_kobject is of type vm_offset_t.
* ipc/mach_debug.c (mach_port_kernel_object) (ip_kobject): Remove unnecessary
cast.
---
ipc/mach_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipc/mach_debug.c b/ipc/mach_debug.c
index 7c3c129..764e95d 100644
--- a/ipc/mach_debug.c
+++ b/ipc/mach_debug.c
@@ -604,7 +604,7 @@ mach_port_kernel_object(
}
*typep = ip_kotype(port);
- *addrp = (vm_offset_t) port->ip_kobject;
+ *addrp = port->ip_kobject;
ip_unlock(port);
return KERN_SUCCESS;
}
--
1.8.1.4