From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 net-next] bnxt_en: combine 'else if' and 'else' into single branch Date: Fri, 03 Aug 2018 09:45:24 -0700 (PDT) Message-ID: <20180803.094524.6178941198330036.davem@davemloft.net> References: <20180803084856.22760-1-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: michael.chan@broadcom.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, vasundhara-v.volam@broadcom.com To: yuehaibing@huawei.com Return-path: In-Reply-To: <20180803084856.22760-1-yuehaibing@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: YueHaibing Date: Fri, 3 Aug 2018 16:48:56 +0800 > The else-if branch and else branch set mac_ok to true similarly, > so combine the two into single else branch. > > Also add comments to explain the two conditions, which > from Michael Chan and Vasundhara Volam. > > Signed-off-by: YueHaibing > Acked-by: Michael Chan > --- > v2: fix typos: 'branche'--> 'branch' , 'Aslo'-->'Also' Applied.