From: Przemyslaw Marczak Date: Fri, 28 Nov 2014 12:49:07 +0000 (+0100) Subject: misc: platform_write: remove unused buffer X-Git-Tag: submit/tizen_common/20150115.132736~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce7cd0ab3d22f291fa9656550c2aa25c91d17e8f;p=platform%2Fkernel%2Fu-boot.git misc: platform_write: remove unused buffer Change-Id: Ib9f90415b92ec1d67a9bf6b84e7ab5d5deea8a7d Signed-off-by: Przemyslaw Marczak --- diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index d701ce07d6..c63e5542c6 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -56,9 +56,7 @@ static char *getenv_by_args(const char *fmt, ...) static int platform_write(bool save_env) { - int buf_len = PLATFORM_SETUP_STR_BUF_LEN; int ret = 0; - char buf[buf_len]; char *env_setup_active; char *platname; char *partitions; @@ -73,7 +71,8 @@ static int platform_write(bool save_env) env_setup_active = getenv_by_args("%s_setup_active", platname); if (!env_setup_active) { printf("Platform active configuration not found\n"); - printf("Check your setup and set: ${%s} number\n", buf); + printf("Check your setup and set: ${%s_setup_active} number\n", + platname); printf("Then run: \"platform setup; platform write env\"\n"); return CMD_RET_FAILURE; } @@ -162,7 +161,8 @@ int platform_setup(void) /* Get ${platname}_setup_N_alt_system */ value = getenv_by_args("%s_setup_%d_alt_system", platname, i); if (!value) { - printf("%s - not found!\n", buf); + printf("%s_setup_%d_alt_system - not found!\n", + platname, i); return CMD_RET_FAILURE; }