Re: [PATCH] sched: add parentheses to if clause

2022-02-26 Thread Weiguo Li
On Sat, 26 Feb 2022 09:31:37 -0800, Stephen Hemminger wrote: > > Add parentheses to 'if' clause, otherwise will enlarged the > > chance of error return. > > > > Fixes: 44c730b0e37971 ("sched: add PIE based congestion management") > > > > Signed-off-by: Weiguo Li > > --- > > lib/sched/rte_pie.c

Re: [PATCH] sched: add parentheses to if clause

2022-02-26 Thread Stephen Hemminger
On Sat, 26 Feb 2022 22:55:30 +0800 Weiguo Li wrote: > Add parentheses to 'if' clause, otherwise will enlarged the > chance of error return. > > Fixes: 44c730b0e37971 ("sched: add PIE based congestion management") > > Signed-off-by: Weiguo Li > --- > lib/sched/rte_pie.c | 6 +++--- > 1 file ch

[PATCH] sched: add parentheses to if clause

2022-02-26 Thread Weiguo Li
Add parentheses to 'if' clause, otherwise will enlarged the chance of error return. Fixes: 44c730b0e37971 ("sched: add PIE based congestion management") Signed-off-by: Weiguo Li --- lib/sched/rte_pie.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sched/rte_pie.c