mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 09:59:03 +02:00
src/xx: cppcheck
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user