From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAF7BC433EF for ; Wed, 30 Mar 2022 11:32:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343658AbiC3Le1 (ORCPT ); Wed, 30 Mar 2022 07:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234578AbiC3LeZ (ORCPT ); Wed, 30 Mar 2022 07:34:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BE31C1EF5; Wed, 30 Mar 2022 04:32:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0E906615B0; Wed, 30 Mar 2022 11:32:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFB42C340EC; Wed, 30 Mar 2022 11:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648639959; bh=nnKpOyhM+7idtYv8+C2ZPU5PLOKBWThMklpXgW1TOUs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RqMZkYEvI+TAFtd17Qi1GCzN6XYAxo8+2bZ24y5ARSasp1rVFhHwKmTqtPFBbJ+XQ PeUDUxDQZsFO1i1Msu7kH4+YNIntYxsmEOkpg9vKZRwKEOtRGU9WGLohQe0gWt1LCD 9ax3tHt8ApEnJw4a4yAxVIA+KdzpcWuQFrnBiJNnlfYRiOyZonCr2xLI090whhKhgP Aqr+AJjrfi3DKPThqTm1o4/6jf9G4fxIKlwcCFau/RScBOBgYhFc5QUOe42GMMSroT dIsA8I96IYVyX9GtQ96rYlfkQ1WdfS1ktacbk0W9fFazAPNOVJ8ld+gl7mDu6sr9SH 28m6D03jpLtHA== Date: Wed, 30 Mar 2022 14:32:35 +0300 From: Leon Romanovsky To: Haakon Bugge Cc: Guo Zhengkui , Mustafa Ismail , Shiraz Saleem , Jason Gunthorpe , Yishai Hadas , OFED mailing list , open list , "zhengkui_guo@outlook.com" Subject: Re: [PATCH linux-next] RDMA: simplify if-if to if-else Message-ID: References: <20220328130900.8539-1-guozhengkui@vivo.com> <76AE36BF-01F9-420B-B7BF-A7C9F523A45C@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <76AE36BF-01F9-420B-B7BF-A7C9F523A45C@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 30, 2022 at 11:06:03AM +0000, Haakon Bugge wrote: > > > > On 30 Mar 2022, at 13:02, Leon Romanovsky 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 > >> --- > >> 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 > > 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 > >