xilinx: supress useless test in spi_wait

This commit is contained in:
Gwenhael Goavec-Merou 2021-04-22 19:06:36 +02:00
parent a4ccdae7df
commit e2b40e1350
1 changed files with 0 additions and 5 deletions

View File

@ -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);
}