]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOCommandGate.cpp
xnu-792.tar.gz
[apple/xnu.git] / iokit / Kernel / IOCommandGate.cpp
index 53a99baa9e2929cf8bbd53730d732cb16cc22de6..dadd047536948761df81d0097ecc73373520872d 100644 (file)
@@ -38,26 +38,26 @@ OSMetaClassDefineReservedUnused(IOCommandGate, 7);
 
 bool IOCommandGate::checkForWork() { return false; }
 
-bool IOCommandGate::init(OSObject *inOwner, Action inAction = 0)
+bool IOCommandGate::init(OSObject *inOwner, Action inAction)
 {
     return super::init(inOwner, (IOEventSource::Action) inAction);
 }
 
 IOCommandGate *
-IOCommandGate::commandGate(OSObject *inOwner, Action inAction = 0)
+IOCommandGate::commandGate(OSObject *inOwner, Action inAction)
 {
     IOCommandGate *me = new IOCommandGate;
 
     if (me && !me->init(inOwner, inAction)) {
-        me->free();
+        me->release();
         return 0;
     }
 
     return me;
 }
 
-IOReturn IOCommandGate::runCommand(void *arg0 = 0, void *arg1 = 0,
-                                   void *arg2 = 0, void *arg3 = 0)
+IOReturn IOCommandGate::runCommand(void *arg0, void *arg1,
+                                   void *arg2, void *arg3)
 {
     IOReturn res;
 
@@ -79,8 +79,8 @@ IOReturn IOCommandGate::runCommand(void *arg0 = 0, void *arg1 = 0,
 }
 
 IOReturn IOCommandGate::runAction(Action inAction,
-                                  void *arg0 = 0, void *arg1 = 0,
-                                  void *arg2 = 0, void *arg3 = 0)
+                                  void *arg0, void *arg1,
+                                  void *arg2, void *arg3)
 {
     IOReturn res;
 
@@ -101,8 +101,8 @@ IOReturn IOCommandGate::runAction(Action inAction,
     return res;
 }
 
-IOReturn IOCommandGate::attemptCommand(void *arg0 = 0, void *arg1 = 0,
-                                       void *arg2 = 0, void *arg3 = 0)
+IOReturn IOCommandGate::attemptCommand(void *arg0, void *arg1,
+                                       void *arg2, void *arg3)
 {
     IOReturn res;
 
@@ -127,8 +127,8 @@ IOReturn IOCommandGate::attemptCommand(void *arg0 = 0, void *arg1 = 0,
 }
 
 IOReturn IOCommandGate::attemptAction(Action inAction,
-                                      void *arg0 = 0, void *arg1 = 0,
-                                      void *arg2 = 0, void *arg3 = 0)
+                                      void *arg0, void *arg1,
+                                      void *arg2, void *arg3)
 {
     IOReturn res;
 
@@ -153,8 +153,6 @@ IOReturn IOCommandGate::attemptAction(Action inAction,
 
 IOReturn IOCommandGate::commandSleep(void *event, UInt32 interruptible)
 {
-    IOReturn ret;
-
     if (!workLoop->inGate())
         return kIOReturnNotPermitted;