From e2b40e13507f656b86232de9c674baf91167ee52 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 22 Apr 2021 19:06:36 +0200 Subject: [PATCH] xilinx: supress useless test in spi_wait --- src/xilinx.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/xilinx.cpp b/src/xilinx.cpp index 23bf657..d2b655d 100644 --- a/src/xilinx.cpp +++ b/src/xilinx.cpp @@ -344,11 +344,6 @@ int Xilinx::spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond, printf("timeout: %x %x %x\n", tmp, rx[0], rx[1]); break; } - if (tmp & ~0x3) { - printf("Error: rx %x %x %x\n", tmp, McsParser::reverseByte(rx[0]), rx[1]); - count = timeout; - break; - } if (verbose) { printf("%x %x %x %u\n", tmp, mask, cond, count); }