From: Spencer Oliver Date: Tue, 26 Jun 2012 12:12:14 +0000 (+0100) Subject: jtag: remove redundant id check X-Git-Tag: v0.6.0-rc1~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c14497d0a87ecebcfc9a7768f6de75898f261bf;p=openocd jtag: remove redundant id check 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 --- diff --git a/src/jtag/core.c b/src/jtag/core.c index 55abe759..5d5803a3 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; } /**