]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOCommandGate.cpp
xnu-517.tar.gz
[apple/xnu.git] / iokit / Kernel / IOCommandGate.cpp
index 73a7cc98e5f2aa651e2f05a7e234228291a15316..6d24f8f29d2d2f0f9075a3694aa145a447d498ac 100644 (file)
@@ -41,26 +41,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;
 
@@ -82,8 +82,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;
 
@@ -104,8 +104,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;
 
@@ -130,8 +130,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;
 
@@ -156,8 +156,6 @@ IOReturn IOCommandGate::attemptAction(Action inAction,
 
 IOReturn IOCommandGate::commandSleep(void *event, UInt32 interruptible)
 {
-    IOReturn ret;
-
     if (!workLoop->inGate())
         return kIOReturnNotPermitted;