Skip to contentSkip to conversation

Remove duplicate code introduced by commit 597f6c26a18b389903a64692bacbf9a1ca69355b

PATCH New Hugo Villeneuve 3 participants 3 messages May 29, 2008 – Jul 7, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove duplicate code introduced by commit 597f6c26a18b389903a64692bacbf9a1ca69355b

Remove duplicate code introduced by commit
597f6c26a18b389903a64692bacbf9a1ca69355b

---

 common/main.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
common/main.c +0 -6
index a17b60b..046da6f 100644
@@ -940,12 +940,6 @@ int readline_into_buffer (const char *const prompt, char * buffer)
 	int rc;
 	static int initted = 0;
 
-	if (!initted) {
-		hist_init();
-		initted = 1;
-	}
-
-
 	/*
 	 * History uses a global array which is not
 	 * writable until after relocation to RAM.
#1 lore raw

PATCH 1/1 Remove duplicate code introduced by commit 597f6c26a18b389903a64692bacbf9a1ca69355b

Quoted 17 lines · In message <[email protected]> you…

Remove duplicate code introduced by commit
597f6c26a18b389903a64692bacbf9a1ca69355b

---

 common/main.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
common/main.c +0 -0
index a17b60b..046da6f 100644
@@ -940,12 +940,6 @@ int readline_into_buffer (const char *const prompt, char * buffer)
 	int rc;
 	static int initted = 0;

common/main.c int readline_into_buffer (const char *const prompt, char * buffer) · line 945

Quoted 10 lines
common/main.c +0 -6
 
-	if (!initted) {
-		hist_init();
-		initted = 1;
-	}
-
-
 	/*
 	 * History uses a global array which is not
 	 * writable until after relocation to RAM.

This doesnt apply to current code. Can you please check and rebase / resubmit if this should be still needed?

Thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Little known fact about Middle Earth:   The Hobbits had a very sophi-
sticated computer network!   It was a Tolkien Ring...
#2 lore raw

PATCH 1/1 Remove duplicate code introduced by commit 597f6c26a18b389903a64692bacbf9a1ca69355b

Quoted 19 lines · Wolfgang Denk
Quoted 18 lines · In message <[email protected]> you…

Remove duplicate code introduced by commit
597f6c26a18b389903a64692bacbf9a1ca69355b

---

 common/main.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
common/main.c +0 -0
index a17b60b..046da6f 100644
@@ -940,12 +940,6 @@ int readline_into_buffer (const char *const prompt, char * buffer)
 	int rc;
 	static int initted = 0;
 
Quoted 12 lines

common/main.c int readline_into_buffer (const char *const prompt, char * buffer) · line 945

Quoted 9 lines
common/main.c +0 -6
-	if (!initted) {
-		hist_init();
-		initted = 1;
-	}
-
-
 	/*
 	 * History uses a global array which is not
 	 * writable until after relocation to RAM.

This doesnt apply to current code. Can you please check and rebase / resubmit if this should be still needed?

?The same change was picked up in commit 35ef877f0a8f6232cdef748f442fed5accb2b641 "Additional fix to readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating", so this change should not be needed.

Best,
Peter