bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/3] ipc/mach_debug.c (mach_port_kernel_object): remove unnecessa


From: Marin Ramesa
Subject: [PATCH 2/3] ipc/mach_debug.c (mach_port_kernel_object): remove unnecessary cast
Date: Wed, 11 Dec 2013 00:01:35 +0100

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 5c93cfd..7c3c129 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;
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]