diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-12-03 08:51:17 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-12-03 08:51:17 +0000 |
commit | ce3ecf13645cadf80aedbc02f7b9934598263854 (patch) | |
tree | 168343245cf4045b27739ce201f85b58f64e9db5 /MdeModulePkg | |
parent | 2c239d62fd37a8311bf3511ffbeca9d6057e114b (diff) | |
download | edk2-platforms-ce3ecf13645cadf80aedbc02f7b9934598263854.tar.xz |
MdeModulePkg: remove unreachable code
Some compilers (like RVCT) are finicky about unreachable code,
so remove it.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19106 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c | 3 | ||||
-rw-r--r-- | MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c | 1 | ||||
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c index bbbbdaa8c1..732dd2f3de 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c @@ -229,7 +229,6 @@ ReadString ( return EFI_DEVICE_ERROR;
}
- break;
case CHAR_BACKSPACE:
if (StringPtr[0] != CHAR_NULL && CurrentCursor != 0) {
@@ -881,7 +880,6 @@ TheKey2: }
goto EnterCarriageReturn;
- break;
case SCAN_UP:
case SCAN_DOWN:
@@ -982,7 +980,6 @@ EnterCarriageReturn: }
return EFI_SUCCESS;
- break;
case CHAR_BACKSPACE:
if (ManualInput) {
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c b/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c index c074f4b4a3..bb2faf3244 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/ProcessOptions.c @@ -568,7 +568,6 @@ PrintFormattedNumber ( default:
return EFI_UNSUPPORTED;
- break;
}
UnicodeSPrint (FormattedNumber, BufferSize, Format, Value);
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index 688a1d66cb..9a18dec5c0 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -3170,7 +3170,6 @@ EvaluateExpression ( //
Status = EFI_UNSUPPORTED;
goto Done;
- break;
}
} else {
//
|