]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellLevel2CommandsLib/Load.c
Remove 2 unnecessary modules (Ps2MouseDxe, Ps2keyboardDxe) for saving size.
[mirror_edk2.git] / ShellPkg / Library / UefiShellLevel2CommandsLib / Load.c
index 1e29ad62e1bb3a09a475e22001893a43414cf521..98ef4b88f33b65bed04857bf559f6bcd5849e9cf 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for attrib shell level 2 function.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -81,13 +81,11 @@ LoadDriver(
 {\r
   EFI_HANDLE                    LoadedDriverHandle;\r
   EFI_STATUS                    Status;\r
-  EFI_DEVICE_PATH_PROTOCOL      *Node;\r
   EFI_DEVICE_PATH_PROTOCOL      *FilePath;\r
   EFI_LOADED_IMAGE_PROTOCOL     *LoadedDriverImage;\r
 \r
   LoadedDriverImage   = NULL;\r
   FilePath            = NULL;\r
-  Node                = NULL;\r
   LoadedDriverHandle  = NULL;\r
   Status              = EFI_SUCCESS;\r
 \r
@@ -248,9 +246,9 @@ ShellCommandRunLoad (
             // once we have an error preserve that value, but finish the loop.\r
             //\r
             if (EFI_ERROR(Status)) {\r
-              LoadDriver(Node->FullName, ShellCommandLineGetFlag(Package, L"-nc"));\r
+              LoadDriver(Node->FullName, (BOOLEAN)(ShellCommandLineGetFlag(Package, L"-nc")==FALSE));\r
             } else {\r
-              Status = LoadDriver(Node->FullName, ShellCommandLineGetFlag(Package, L"-nc"));\r
+              Status = LoadDriver(Node->FullName, (BOOLEAN)(ShellCommandLineGetFlag(Package, L"-nc")==FALSE));\r
             }\r
           } // for loop for multi-open\r
           if (EFI_ERROR(Status)) {\r