Bluetooth: replace list_for_each with list_for_each_entry whenever possible

When all items in the list have the same type there is no much of a point
to use list_for_each except if you want to use the list pointer itself.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
Luiz Augusto von Dentz
2011-11-01 10:58:56 +02:00
committed by Gustavo F. Padovan
parent 457f48507d
commit 8035ded466
9 changed files with 51 additions and 120 deletions

View File

@@ -88,6 +88,7 @@ static struct hidp_session *__hidp_get_session(bdaddr_t *bdaddr)
if (!bacmp(bdaddr, &session->bdaddr))
return session;
}
return NULL;
}