[PATCH openEuler-5.10 25/73] tipc: Fix end of loop tests for list_for_each_entry()