Tag: 7e6eaa90413f75f200ccb3d592537373b19016dc

Staging: gdm72xx: Iterate list using list_for_each_entry

Author: Somya Anand <somyaanand214@gmail.com> Code using doubly linked list is iterated generally using list_empty and list_entry functions, but it can be better written using list_for_each_entry macro. This patch replaces the while loop containing list_empty and list_entry with list_for_each_entry and list_for_each_entry_safe. list_for_each_entry is a macro which is used to iterate over a list of given type. …

Continue reading