]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Fix "unreachable code" warning with VS2005
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 20 Sep 2010 07:03:51 +0000 (07:03 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 20 Sep 2010 07:03:51 +0000 (07:03 +0000)
Since all paths of the switch block now return, it
is not possible to reach the code following the switch
block.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10894 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLevel1CommandsLib/If.c

index a8af5ed7dcc2e768a4418a973b58954973eeb765..f3fc6b06a83d7d300aab8d31b4de31252fe6f82a 100644 (file)
@@ -306,8 +306,6 @@ TestOperation (
     ASSERT(FALSE);\r
     return (FALSE);\r
   }\r
-  ASSERT(FALSE);\r
-  return (FALSE);\r
 }\r
 \r
 EFI_STATUS\r