Tag: 24f695909440b79b04bb75205384c9772e4c7d0a

staging: lustre: lnet: lib-move: Use list_for_each_entry_safe

Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Doubly linked lists which are iterated using list_empty and list_entry macros have been replaced with list_for_each_entry_safe macro. This makes the iteration simpler and more readable. This patch replaces the while loop containing list_empty and list_entry with list_for_each_entry_safe. This was done with Coccinelle. @@ expression E1; identifier I1, I2; type T; iterator …

Continue reading