Commit 0fd8af9
committed
Bluetooth: Host: Make use of common array helper macros
There's a bunch of convenience macros in sys/util.h that are intended to
help out with translating array indices and determining if an element is
part of an array or not. Use those instead of custom code.
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>1 parent 45fc6fe commit 0fd8af9
3 files changed
+11
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 192 | + | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1546 | 1546 | | |
1547 | 1547 | | |
1548 | 1548 | | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
| 1549 | + | |
| 1550 | + | |
1552 | 1551 | | |
1553 | 1552 | | |
1554 | 1553 | | |
1555 | 1554 | | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
| 1555 | + | |
| 1556 | + | |
1559 | 1557 | | |
1560 | 1558 | | |
1561 | 1559 | | |
1562 | 1560 | | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
| 1561 | + | |
| 1562 | + | |
1566 | 1563 | | |
1567 | 1564 | | |
1568 | 1565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
| 1844 | + | |
1847 | 1845 | | |
1848 | | - | |
| 1846 | + | |
| 1847 | + | |
1849 | 1848 | | |
1850 | 1849 | | |
1851 | 1850 | | |
| |||
0 commit comments