diff options
| author | Jiri Slaby <[email protected]> | 2022-04-21 10:58:06 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-22 16:19:52 +0200 |
| commit | e391e325478f9c4d4cae757ef528f21d605f450a (patch) | |
| tree | f56086104426adca4d0d04c2db427b3132ca20ff /tools/perf/scripts/python | |
| parent | 8b026d636d4a4a92533b7f28a86e59ffd6d7acad (diff) | |
serial: icom: use list_for_each_entry()
Use list_for_each_entry() helper instead of explicit combo of
list_for_each() and list_entry().
Note that pos is used as a reference point in list_add_tail() in
icom_alloc_adapter(). This functionality remains as with an empty list,
cur_adapter_entry->icom_adapter_entry is still the list head.
This simplifies the code a bit.
Signed-off-by: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions