Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
/** @file\r
Internal library implementation for PCI Bus module.\r
\r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
FreePool (Descriptors);\r
\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
- }\r
+ switch (Status) {\r
+ case EFI_SUCCESS:\r
+ BusPadding = TRUE;\r
+ break;\r
\r
- BusPadding = TRUE;\r
+ case EFI_NOT_FOUND:\r
+ //\r
+ // no bus number padding requested\r
+ //\r
+ break;\r
+\r
+ default:\r
+ return Status;\r
+ }\r
}\r
}\r
}\r