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 X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F5B5C73C7C for ; Wed, 10 Jul 2019 09:31:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62FC920838 for ; Wed, 10 Jul 2019 09:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562751109; bh=vy0Mr4Uol6rxl9Ul5HNef3JkghGVfMZzH2ZYvBEDPNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=uZuNdaKXX2RIJiMQnZV5UOIIPNljJH789GUn5wA/6ICBGnGrVBIRwrx3EGJp0GGI/ 6KGZpiPc2wLEf9ZFI8kmGKZGy3Ia4kJLtSUmvNO6Pe2tq/7Q7ZdqCgit7OlXRLLUZ4 4Z77u7lvrdy0raxlK0qWWSW4lME27g/vMjn1ADo4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbfGJJbp (ORCPT ); Wed, 10 Jul 2019 05:31:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:34308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfGJJbp (ORCPT ); Wed, 10 Jul 2019 05:31:45 -0400 Received: from localhost (unknown [37.142.3.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C01A020838; Wed, 10 Jul 2019 09:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562751104; bh=vy0Mr4Uol6rxl9Ul5HNef3JkghGVfMZzH2ZYvBEDPNM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v3AUO4eYGlcdf0/mRSZxPbZ2Xs+pJEVLj+7ECL67ahfXbHScUC+ItJ93D0h1evUJv X4xwiL//KM6HoaGu1aq2/XwMq3fleodsYyTzpDjOQ25Ie/Vz+b4bt39sAJRumpGlLl PWR5BVOMD3BBROb3E3q6OTjafSO/4YRLR5rXa9ME= Date: Wed, 10 Jul 2019 12:31:39 +0300 From: Leon Romanovsky To: Nathan Chancellor Cc: Saeed Mahameed , "David S. Miller" , Boris Pismenny , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nick Desaulniers Subject: Re: [PATCH net-next v3] net/mlx5e: Convert single case statement switch statements into if statements Message-ID: <20190710093139.GG7034@mtr-leonro.mtl.com> References: <20190710044748.3924-1-natechancellor@gmail.com> <20190710060614.6155-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190710060614.6155-1-natechancellor@gmail.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jul 09, 2019 at 11:06:15PM -0700, Nathan Chancellor wrote: > During the review of commit 1ff2f0fa450e ("net/mlx5e: Return in default > case statement in tx_post_resync_params"), Leon and Nick pointed out > that the switch statements can be converted to single if statements > that return early so that the code is easier to follow. > > Suggested-by: Leon Romanovsky > Suggested-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- Thanks again, Reviewed-by: Leon Romanovsky