A few lines earlier the code bails out in case len is 0. Checking for buf->len < 1 is the same as checking for buf->len == 0. Since len is guaranteed to be > 0 here the check len > buf->len implicitly checks for buf->len == 0, i.e. the second test can be removed. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
|---|---|---|
| .. | ||
| altera_max10 | ||
| arduino_101 | ||
| microbit | ||
| nrf52 | ||
| quark_se_c1000 | ||
| boards.rst | ||