Loading...
iokit/bsddev/IOKitBSDInit.cpp xnu-1228.3.13 xnu-1228
--- xnu/xnu-1228.3.13/iokit/bsddev/IOKitBSDInit.cpp
+++ xnu/xnu-1228/iokit/bsddev/IOKitBSDInit.cpp
@@ -43,7 +43,6 @@
 
 extern dev_t mdevadd(int devid, ppnum_t base, unsigned int size, int phys);
 extern dev_t mdevlookup(int devid);
-extern void mdevremoveall(void);
 
 kern_return_t
 IOKitBSDInit( void )
@@ -777,19 +776,14 @@
 void IOSecureBSDRoot(const char * rootName)
 {
 #if CONFIG_EMBEDDED
-    IOReturn         result;
     IOPlatformExpert *pe;
-    const OSSymbol   *functionName = OSSymbol::withCStringNoCopy("SecureRootName");
+    const OSSymbol *functionName = OSSymbol::withCStringNoCopy("SecureRootName");
     
     while ((pe = IOService::getPlatform()) == 0) IOSleep(1 * 1000);
     
-    // Returns kIOReturnNotPrivileged is the root device is not secure.
-    // Returns kIOReturnUnsupported if "SecureRootName" is not implemented.
-    result = pe->callPlatformFunction(functionName, false, (void *)rootName, (void *)0, (void *)0, (void *)0);
+    pe->callPlatformFunction(functionName, false, (void *)rootName, (void *)0, (void *)0, (void *)0);
     
     functionName->release();
-    
-    if (result == kIOReturnNotPrivileged) mdevremoveall();
 #endif
 }