Re: [PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-13 Thread Nishka Dasgupta
On 13/08/19 11:55 AM, Roger Quadros wrote: On 13/08/2019 07:35, Nishka Dasgupta wrote: On 08/08/19 7:25 PM, Roger Quadros wrote: Nishka, On 08/08/2019 10:40, Nishka Dasgupta wrote: In function sysc_check_children, there is an if-statement checking whether the value returned by function sysc

Re: [PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-12 Thread Tony Lindgren
* Roger Quadros [190813 06:26]: > None of those functions return anything. > Maybe you can fix sysc_check_one_child() to return void? > I think you can retain your patch but get rid of error variable. Makes sense to me. Regards, Tony

Re: [PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-12 Thread Roger Quadros
On 13/08/2019 07:35, Nishka Dasgupta wrote: > On 08/08/19 7:25 PM, Roger Quadros wrote: >> Nishka, >> >> On 08/08/2019 10:40, Nishka Dasgupta wrote: >>> In function sysc_check_children, there is an if-statement checking >>> whether the value returned by function sysc_check_one_child is non-zero.

Re: [PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-12 Thread Nishka Dasgupta
On 08/08/19 7:25 PM, Roger Quadros wrote: Nishka, On 08/08/2019 10:40, Nishka Dasgupta wrote: In function sysc_check_children, there is an if-statement checking whether the value returned by function sysc_check_one_child is non-zero. However, sysc_check_one_child always returns 0, and hence thi

Re: [PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-08 Thread Roger Quadros
Nishka, On 08/08/2019 10:40, Nishka Dasgupta wrote: > In function sysc_check_children, there is an if-statement checking > whether the value returned by function sysc_check_one_child is non-zero. > However, sysc_check_one_child always returns 0, and hence this check is > not needed. Hence remove t

[PATCH] bus: ti-sysc: Remove if-block in sysc_check_children()

2019-08-08 Thread Nishka Dasgupta
In function sysc_check_children, there is an if-statement checking whether the value returned by function sysc_check_one_child is non-zero. However, sysc_check_one_child always returns 0, and hence this check is not needed. Hence remove this if-block. Signed-off-by: Nishka Dasgupta --- drivers/b