commit | 42813295dfa3689c73e93726e7ebbbdb466dd246 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Mon Oct 27 09:37:35 2014 -0700 |
committer | Santosh Shilimkar <ssantosh@kernel.org> | Mon Oct 27 09:37:35 2014 -0700 |
tree | 387823539fc3ce0adb2f832590266aa30082c04c | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 [diff] |
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>