Revert "DebugUsb3: Check mUsb3Instance before dereferencing it"
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugCommunicationLibUsb3 / DebugCommunicationLibUsb3Dxe.c
index 29cec56..1582b9a 100644 (file)
@@ -443,7 +443,7 @@ DebugCommunicationUsb3DxeConstructor (
   }\r
 \r
 Done:\r
-  if ((mUsb3Instance != NULL) && mUsb3Instance->Ready && (mUsb3Instance->PciIoEvent == 0)) {\r
+  if (mUsb3Instance->Ready && (mUsb3Instance->PciIoEvent == 0)) {\r
     Status = Usb3NamedEventListen (\r
                &gEfiPciIoProtocolGuid,\r
                TPL_NOTIFY,\r