Re: [PATCH 1/6] [v3] wifi: ath10k: cleanup CE ring initialization

2023-09-21 Thread Kalle Valo
Dmitry Antipov writes: >> If most/all of the functions return the same error value type as int >> it makes a lot easier to read the code. > > ...but still not sure that this is reasonable for any non-trivial piece > of the source code. What's the concrete benefit from having few functions which

Re: [PATCH 1/6] [v3] wifi: ath10k: cleanup CE ring initialization

2023-09-21 Thread Dmitry Antipov
On 9/20/23 16:23, Kalle Valo wrote: I have on purpose avoided to use void functions in ath10k/ath11k/ath12k. The problem is that if some of the functions return void and some of the functions return int it's much harder to review the code. I realize that you're constantly overloaded with

Re: [PATCH 1/6] [v3] wifi: ath10k: cleanup CE ring initialization

2023-09-20 Thread Kalle Valo
Dmitry Antipov writes: > Commit 25d0dbcbd5c7 ("ath10k: split ce initialization and allocation") > changes 'ath10k_ce_init_src_ring()' and 'ath10k_ce_init_dest_ring()' > so these functions can't return -ENOMEM but always returns 0. This way > both of them may be converted to 'void', and

Re: [PATCH 1/6] [v3] wifi: ath10k: cleanup CE ring initialization

2023-08-24 Thread Jeff Johnson
On 8/23/2023 10:51 PM, Dmitry Antipov wrote: Commit 25d0dbcbd5c7 ("ath10k: split ce initialization and allocation") changes 'ath10k_ce_init_src_ring()' and 'ath10k_ce_init_dest_ring()' so these functions can't return -ENOMEM but always returns 0. This way both of them may be converted to 'void',

[PATCH 1/6] [v3] wifi: ath10k: cleanup CE ring initialization

2023-08-23 Thread Dmitry Antipov
Commit 25d0dbcbd5c7 ("ath10k: split ce initialization and allocation") changes 'ath10k_ce_init_src_ring()' and 'ath10k_ce_init_dest_ring()' so these functions can't return -ENOMEM but always returns 0. This way both of them may be converted to 'void', and 'ath10k_ce_init_pipe()' may be simplified