src/xx: cppcheck

This commit is contained in:
Gwenhael Goavec-Merou
2023-04-15 08:20:05 +02:00
parent 3ca60dd14d
commit 0a9e8a7e4b
24 changed files with 45 additions and 36 deletions
+3
View File
@@ -175,6 +175,9 @@ int LibgpiodJtagBitbang::writeTMS(uint8_t *tms_buf, uint32_t len,
{
int tms;
if (len == 0) // nothing -> stop
return len;
for (uint32_t i = 0; i < len; i++) {
tms = ((tms_buf[i >> 3] & (1 << (i & 7))) ? 1 : 0);