From 2c14497d0a87ecebcfc9a7768f6de75898f261bf Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Tue, 26 Jun 2012 13:12:14 +0100 Subject: [PATCH] jtag: remove redundant id check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 5b0a1315948252ddde03fc74763ef8300c5f329c removed the need to check for 0xffffffff. Change-Id: Ib4d99bf1797ccd868ec15631dbc16079571a8dd6 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/728 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin --- src/jtag/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jtag/core.c b/src/jtag/core.c index 55abe7593..5d5803a36 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -962,10 +962,10 @@ static bool jtag_idcode_is_final(uint32_t idcode) { /* * Some devices, such as AVR8, will output all 1's instead - * of TDI input value at end of chain. Allow those values + * of TDI input value at end of chain. Allow those values * instead of failing. */ - return idcode == END_OF_CHAIN_FLAG || idcode == 0xFFFFFFFF; + return idcode == END_OF_CHAIN_FLAG; } /**