Assorted clang static analysis fixes

This commit is contained in:
Tim Gover
2022-03-16 16:01:39 +00:00
committed by Dom Cobley
parent eca070c8f4
commit 153a235deb

View File

@@ -2364,6 +2364,7 @@ int dtoverlay_next_pin(PIN_ITER_T *iter, int *pin, int *func, int *pull)
if ((iter->pin_off) + 4 <= iter->pins_len)
{
int off = iter->pin_off;
if (pin)
*pin = GETBE4(iter->pins, off);
if (func && iter->funcs_len)
*func = GETBE4(iter->funcs, (iter->funcs_len > 4) ? off : 0);