Re: [PATCH 7/7] ath: drop unnecessary list_empty

2020-08-14 Thread Kalle Valo
Julia Lawall wrote: > list_for_each_entry{_safe} is able to handle an empty list. > The only effect of avoiding the loop is not initializing the > index variable. > Drop list_empty tests in cases where these variables are not > used. > > Note that list_for_each_entry{_safe} is defined in terms o

[PATCH 7/7] ath: drop unnecessary list_empty

2020-07-26 Thread Julia Lawall
list_for_each_entry{_safe} is able to handle an empty list. The only effect of avoiding the loop is not initializing the index variable. Drop list_empty tests in cases where these variables are not used. Note that list_for_each_entry{_safe} is defined in terms of list_first_entry, which indicates