diff options
| author | Marek BehĂșn <[email protected]> | 2021-08-18 00:59:15 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-10-01 11:07:13 +0200 |
| commit | 732c930b219a6c72c3d4b553372a2443627406e9 (patch) | |
| tree | 27b97089edc0e1be40959712a6461b7d568b5c52 /scripts/const_structs.checkpatch | |
| parent | ddc04fac90d92e45fb00daa95ebac171769bdc9c (diff) | |
tools: kwbimage: Simplify iteration over version 1 optional headers
Create macro
for_each_opt_hdr_v1
and functions
opt_hdr_v1_size(),
opt_hdr_v1_valid_size(),
opt_hdr_v1_ext(),
opt_hdr_v1_first() and
opt_hdr_v1_next()
to simplify iteration over version 1 optional headers.
This prevents ugly code repetition and makes it nicer to read.
Signed-off-by: Marek BehĂșn <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
