Re: [PATCH net-next 2/2] net: sched: sch_api: rearrange init handling

2017-12-05 Thread Jamal Hadi Salim
On 17-12-04 06:40 PM, Alexander Aring wrote: This patch fixes the following checkpatch error: ERROR: do not use assignment in if condition by rearranging the if condition to execute init callback only if init callback exists. The whole setup afterwards is called in any case, doesn't matter if

[PATCH net-next 2/2] net: sched: sch_api: rearrange init handling

2017-12-04 Thread Alexander Aring
This patch fixes the following checkpatch error: ERROR: do not use assignment in if condition by rearranging the if condition to execute init callback only if init callback exists. The whole setup afterwards is called in any case, doesn't matter if init callback is set or not. This patch has the