Return directly if no any device in EndOfDxe notification.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
mOpalRequestVariableSize = 0;\r
}\r
\r
mOpalRequestVariableSize = 0;\r
}\r
\r
+ //\r
+ // If no any device, return directly.\r
+ //\r
+ if (mOpalDriver.DeviceList == NULL) {\r
+ gBS->CloseEvent (Event);\r
+ return;\r
+ }\r
+\r
//\r
// Assume 64K size and alignment are enough.\r
//\r
//\r
// Assume 64K size and alignment are enough.\r
//\r