]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: Remove superfluous return statements.
authorThomas Huth <thuth@redhat.com>
Thu, 19 Jan 2017 09:17:37 +0000 (10:17 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 19 Jan 2017 09:28:40 +0000 (10:28 +0100)
If the code eventually returns "Status" anyway, it does not make
sense to explicitely return "Status" in case of an error, too.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/Library/NvVarsFileLib/FsAccess.c
OvmfPkg/XenBusDxe/XenStore.c

index 826901fc6b7546c22fd5002bb87873329db19010..cd0bfff2c4e5731c151293a9e096ae3f7d3912dd 100644 (file)
@@ -77,9 +77,6 @@ GetNvVarsFile (
                      ),\r
                    0\r
                    );\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
 \r
   return Status;\r
 }\r
index 1666c4b8f90fcaaeba91b9796fc669253abb650e..76b6e297efef97566bfc890f9faca1c8ee5f4ac5 100644 (file)
@@ -1075,9 +1075,6 @@ XenStoreInit (
 \r
   /* Initialize the shared memory rings to talk to xenstored */\r
   Status = XenStoreInitComms (&xs);\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
 \r
   return Status;\r
 }\r