diff options
author | Star Zeng <star.zeng@intel.com> | 2018-03-14 16:08:41 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-05-11 17:50:01 +0800 |
commit | df2b9b73fcdeb548ab4f2df32e5a4a4d33342d8a (patch) | |
tree | 805b6a2eff17329f1cd5a7e7b60337cf7eca4ad4 | |
parent | 80654b7e45fe5a609b32e04aa715f64aa7686dcc (diff) | |
download | edk2-df2b9b73fcdeb548ab4f2df32e5a4a4d33342d8a.tar.gz edk2-df2b9b73fcdeb548ab4f2df32e5a4a4d33342d8a.tar.bz2 edk2-df2b9b73fcdeb548ab4f2df32e5a4a4d33342d8a.zip |
Revert "DebugUsb3: Check mUsb3Instance before dereferencing it"
This reverts commit 6ef394ffe29bbc67038fc16ed540bfe6eed10e16.
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
(cherry picked from commit abea3bca8212f8c2ea34da6b9f6315d755537767)
-rw-r--r-- | SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c index 29cec56f39..1582b9a8d6 100644 --- a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c +++ b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Dxe.c @@ -443,7 +443,7 @@ DebugCommunicationUsb3DxeConstructor ( }
Done:
- if ((mUsb3Instance != NULL) && mUsb3Instance->Ready && (mUsb3Instance->PciIoEvent == 0)) {
+ if (mUsb3Instance->Ready && (mUsb3Instance->PciIoEvent == 0)) {
Status = Usb3NamedEventListen (
&gEfiPciIoProtocolGuid,
TPL_NOTIFY,
|