]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ti: Use list_first_entry_or_null() at appropriate places
authorAxel Lin <axel.lin@ingics.com>
Mon, 27 Oct 2014 16:37:35 +0000 (09:37 -0700)
committerSantosh Shilimkar <ssantosh@kernel.org>
Mon, 27 Oct 2014 16:37:35 +0000 (09:37 -0700)
commit7abf15b9430e183bdfe748983aae2bf6558b6437
tree387823539fc3ce0adb2f832590266aa30082c04c
parent794664fc5e82534aa444b079f807e339c4d8d9b5
soc: ti: Use list_first_entry_or_null() at appropriate places

Use list_first_entry_or_null() for first_region() and first_queue_range().

list_first_entry() expects the list is not empty, so first_region() and
first_queue_range() never return NULL.
Thus use list_first_entry_or_null() instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
drivers/soc/ti/knav_qmss.h