]> xenbits.xensource.com Git - people/pauldu/xennet.git/commitdiff
Get rid of InitSafeBootMode veto
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 1 Mar 2016 16:53:52 +0000 (16:53 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 1 Mar 2016 16:53:52 +0000 (16:53 +0000)
This should no longer be necessary since XENVIF fails to start PDOs if
emulated devices are present, which they will be in safe mode.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xennet/driver.c

index 85efd1dcb839350f7f881783da451df036266b69..e4d46be9ed17fec87d4327366309b5ff8a9dd59e 100644 (file)
@@ -43,8 +43,6 @@ typedef struct _XENNET_DRIVER {
 
 static XENNET_DRIVER Driver;
 
-extern PULONG InitSafeBootMode;
-
 typedef struct _XENNET_CONTEXT {
     PDEVICE_CAPABILITIES    Capabilities;
     PIO_COMPLETION_ROUTINE  CompletionRoutine;
@@ -166,9 +164,6 @@ DriverUnload(
 
     Trace("====>\n");
 
-    if (*InitSafeBootMode > 0)
-        goto done;
-
     if (Driver.MiniportHandle)
         NdisMDeregisterMiniportDriver(Driver.MiniportHandle);
     Driver.MiniportHandle = NULL;
@@ -182,7 +177,6 @@ DriverUnload(
          MONTH,
          YEAR);
 
-done:
     Trace("<====\n");
 }
 
@@ -206,9 +200,6 @@ DriverEntry (
 
     Trace("====>\n");
 
-    if (*InitSafeBootMode > 0)
-        return NDIS_STATUS_SUCCESS;
-
     Info("XENNET %d.%d.%d (%d) (%02d.%02d.%04d)\n",
          MAJOR_VERSION,
          MINOR_VERSION,