diff options
author | Star Zeng <star.zeng@intel.com> | 2018-03-14 16:08:41 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-03-15 14:14:07 +0800 |
commit | abea3bca8212f8c2ea34da6b9f6315d755537767 (patch) | |
tree | bef57192e7fd08d613ff7d9d48d2ee698354cb7d /SourceLevelDebugPkg | |
parent | ff1d0fbfbaec55038ccf888759588fa4e21516f4 (diff) | |
download | edk2-abea3bca8212f8c2ea34da6b9f6315d755537767.tar.gz edk2-abea3bca8212f8c2ea34da6b9f6315d755537767.tar.bz2 edk2-abea3bca8212f8c2ea34da6b9f6315d755537767.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>
Diffstat (limited to 'SourceLevelDebugPkg')
-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,
|