]> Git Repo - u-boot.git/blobdiff - common/cli_hush.c
bootm: Update fixup_silent_linux() to return an error
[u-boot.git] / common / cli_hush.c
index 5b1f11907438e893911ca6f8e0650be8a423392c..b7f0f0ff4184a94ca8c31e761b6cf4ecd2c9cf4f 100644 (file)
@@ -84,9 +84,6 @@
 #include <cli.h>
 #include <cli_hush.h>
 #include <command.h>        /* find_cmd */
-#ifndef CONFIG_SYS_PROMPT_HUSH_PS2
-#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
-#endif
 #endif
 #ifndef __U_BOOT__
 #include <ctype.h>     /* isalpha, isdigit */
@@ -2170,14 +2167,6 @@ int set_local_var(const char *s, int flg_export)
 
        name=strdup(s);
 
-#ifdef __U_BOOT__
-       if (env_get(name) != NULL) {
-               printf ("ERROR: "
-                               "There is a global environment variable with the same name.\n");
-               free(name);
-               return -1;
-       }
-#endif
        /* Assume when we enter this function that we are already in
         * NAME=VALUE format.  So the first order of business is to
         * split 's' on the '=' into 'name' and 'value' */
This page took 0.024014 seconds and 4 git commands to generate.