From 2b46d3fc3f7749b0dc2c0749c0ebf096d0147e45 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Wed, 11 Dec 2013 00:01:35 +0100 Subject: ipc/mach_debug.c (mach_port_kernel_object): remove unnecessary cast Return value from ip_kotype is an unsigned int. * ipc/mach_debug.c (mach_port_kernel_object) (ip_kotype): 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 723d8646..7201f7c6 100644 --- a/ipc/mach_debug.c +++ b/ipc/mach_debug.c @@ -603,7 +603,7 @@ mach_port_kernel_object( return KERN_INVALID_RIGHT; } - *typep = (unsigned int) ip_kotype(port); + *typep = ip_kotype(port); *addrp = (vm_offset_t) port->ip_kobject; ip_unlock(port); return KERN_SUCCESS; -- cgit v1.2.3