cortexm: Fixed a clang-tidy warning in the PROBE macro

This commit is contained in:
dragonmux 2022-07-27 20:39:05 +01:00 committed by Piotr Esden-Tempski
parent 08207b9af9
commit 75773631cb
1 changed files with 2 additions and 4 deletions

View File

@ -392,16 +392,14 @@ bool cortexm_probe(ADIv5_AP_t *ap)
DEBUG_INFO("Calling " STRINGIFY(x) "\n"); \ DEBUG_INFO("Calling " STRINGIFY(x) "\n"); \
if ((x)(t)) \ if ((x)(t)) \
return true; \ return true; \
else \ target_check_error(t); \
target_check_error(t); \
} while (0) } while (0)
#else #else
#define PROBE(x) \ #define PROBE(x) \
do { \ do { \
if ((x)(t)) \ if ((x)(t)) \
return true; \ return true; \
else \ target_check_error(t); \
target_check_error(t); \
} while (0) } while (0)
#endif #endif