Re: [PATCH 1/3] soc: ti: Use list_first_entry_or_null() at appropriate places

2014-10-27 Thread Santosh Shilimkar
Alex, On 10/26/2014 02:37 AM, Axel Lin wrote: 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:

Re: [PATCH 1/3] soc: ti: Use list_first_entry_or_null() at appropriate places

2014-10-27 Thread Santosh Shilimkar
Alex, On 10/26/2014 02:37 AM, Axel Lin wrote: 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:

[PATCH 1/3] soc: ti: Use list_first_entry_or_null() at appropriate places

2014-10-26 Thread Axel Lin
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 --- drivers/soc/ti/knav_qmss.h | 8

[PATCH 1/3] soc: ti: Use list_first_entry_or_null() at appropriate places

2014-10-26 Thread Axel Lin
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@ingics.com ---