Commit 6cd9b6c
modules: Use list_for_item() instead of list_for_item_safe() in mod_free()
Use list_for_item() instead of list_for_item_safe() in mod_free().
There is no need for *_safe() version when loop is not continued after
an element is removed from the list.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent c8a8626 commit 6cd9b6c
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
361 | | - | |
| 360 | + | |
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
| |||
0 commit comments