]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
authorLaszlo Ersek <lersek@redhat.com>
Fri, 17 Apr 2020 15:37:48 +0000 (17:37 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 22 Apr 2020 19:42:32 +0000 (19:42 +0000)
The cases under ResetSystem() currently mix "break"s with "return"s for no
good reason. Use "break" consistently.

(The inconsistency was introduced in commit 84c0b80de716,
"OvmfPkg/ResetSystemLib: Add new API ResetSystem", 2019-04-28.)

Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Rebecca Cran <rebecca@bsdio.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2675
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200417153751.7110-4-lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c

index 23816183a95371d4bbacd7ace7f06d4ce2c2978d..0fc142325ecead8aa6998a2295e808102a712c26 100644 (file)
@@ -157,13 +157,13 @@ ResetSystem (
 \r
   case EfiResetShutdown:\r
     ResetShutdown ();\r
-    return;\r
+    break;\r
 \r
   case EfiResetPlatformSpecific:\r
     ResetPlatformSpecific (DataSize, ResetData);\r
-    return;\r
+    break;\r
 \r
   default:\r
-    return;\r
+    break;\r
   }\r
 }\r