[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YkQ/092IYsQxU9bi@unreal>
Date: Wed, 30 Mar 2022 14:32:35 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Haakon Bugge <haakon.bugge@...cle.com>
Cc: Guo Zhengkui <guozhengkui@...o.com>,
Mustafa Ismail <mustafa.ismail@...el.com>,
Shiraz Saleem <shiraz.saleem@...el.com>,
Jason Gunthorpe <jgg@...pe.ca>,
Yishai Hadas <yishaih@...dia.com>,
OFED mailing list <linux-rdma@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>,
"zhengkui_guo@...look.com" <zhengkui_guo@...look.com>
Subject: Re: [PATCH linux-next] RDMA: simplify if-if to if-else
On Wed, Mar 30, 2022 at 11:06:03AM +0000, Haakon Bugge wrote:
>
>
> > On 30 Mar 2022, at 13:02, Leon Romanovsky <leon@...nel.org> wrote:
> >
> > On Mon, Mar 28, 2022 at 09:08:59PM +0800, Guo Zhengkui wrote:
> >> `if (!ret)` can be replaced with `else` for simplification.
> >>
> >> Signed-off-by: Guo Zhengkui <guozhengkui@...o.com>
> >> ---
> >> drivers/infiniband/hw/irdma/puda.c | 4 ++--
> >> drivers/infiniband/hw/mlx4/mcg.c | 3 +--
> >> 2 files changed, 3 insertions(+), 4 deletions(-)
> >>
> >
> > Thanks,
> > Reviewed-by: Leon Romanovsky <leonro@...dia.com>
>
> Fix the unbalanced curly brackets at the same time?
I think that it is ok to have if () ... else { ... } code.
There is one place that needs an indentation fix, in mlx4, but it is
faster to fix when applying the patch instead of asking to resubmit.
thanks
>
>
> Thxs, HÃ¥kon
>
>
Powered by blists - more mailing lists