]> gitweb.factorcode.org Git - factor.git/commitdiff
vm/mach_signal.cpp: didn't need mach_msg_return_t.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 4 May 2018 02:17:33 +0000 (19:17 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 4 May 2018 02:17:33 +0000 (19:17 -0700)
vm/mach_signal.cpp

index 7ebc718365503051cce23db77e8d4d4c74c9caf5..96eee762eba3b31984cc49a854ada22c3abc2e13 100644 (file)
@@ -165,13 +165,10 @@ static void* mach_exception_thread(void* arg) {
       char data[1024];
     } reply;
 
-    mach_msg_return_t retval;
-
     // Wait for a message on the exception port.
-    retval =
-        mach_msg(&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof(msg),
-                 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
-    if (retval != MACH_MSG_SUCCESS) {
+    if (mach_msg(&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof(msg),
+                 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL) !=
+        MACH_MSG_SUCCESS) {
       abort();
     }