diff mbox

[U-Boot] km/common: remove unused code

Message ID 20170630133335.15461-1-holger.brunck@keymile.com
State Accepted
Commit 945e3b5157c58ab76cd81b8196c76ced83c5f477
Delegated to: Tom Rini
Headers show

Commit Message

Holger Brunck June 30, 2017, 1:33 p.m. UTC
The 82xx board mgcoge3ne was removed from the codebase, so this is dead
code.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Heiko Schocher <hs@denx.de>
---
 board/keymile/common/common.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Heiko Schocher June 30, 2017, 1:52 p.m. UTC | #1
Hello Holger,

Am 30.06.2017 um 15:33 schrieb Holger Brunck:
> The 82xx board mgcoge3ne was removed from the codebase, so this is dead
> code.
>
> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
> Cc: Heiko Schocher <hs@denx.de>
> ---
>   board/keymile/common/common.c | 3 ---
>   1 file changed, 3 deletions(-)

nice catch! Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
>
> diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
> index 0829b7fa06..408079c9a1 100644
> --- a/board/keymile/common/common.c
> +++ b/board/keymile/common/common.c
> @@ -355,9 +355,6 @@ static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
>   #if defined(CONFIG_POST)
>   	testpin = post_hotkeys_pressed();
>   #endif
> -#if defined(CONFIG_MGCOGE3NE)
> -	testpin = get_testpin();
> -#endif
>   	s = getenv("test_bank");
>   	/* when test_bank is not set, act as if testpin is not asserted */
>   	testboot = (testpin != 0) && (s);
>
Tom Rini July 7, 2017, 11:41 a.m. UTC | #2
On Fri, Jun 30, 2017 at 03:33:35PM +0200, Holger Brunck wrote:

> The 82xx board mgcoge3ne was removed from the codebase, so this is dead
> code.
> 
> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
> Cc: Heiko Schocher <hs@denx.de>
> Reviewed-by: Heiko Schocher <hs@denx.de>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index 0829b7fa06..408079c9a1 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -355,9 +355,6 @@  static int do_checktestboot(cmd_tbl_t *cmdtp, int flag, int argc,
 #if defined(CONFIG_POST)
 	testpin = post_hotkeys_pressed();
 #endif
-#if defined(CONFIG_MGCOGE3NE)
-	testpin = get_testpin();
-#endif
 	s = getenv("test_bank");
 	/* when test_bank is not set, act as if testpin is not asserted */
 	testboot = (testpin != 0) && (s);