Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp658930pxk; Wed, 9 Sep 2020 15:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySsC6T3T5HzDQpFcLhbVhX9df4GlDdSS8AxoWdoxjnJRv045PrkznyiBTh3YzAxCF4Id6V X-Received: by 2002:aa7:d382:: with SMTP id x2mr6545393edq.108.1599690998691; Wed, 09 Sep 2020 15:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599690998; cv=none; d=google.com; s=arc-20160816; b=tBLNqM7IsyR4EQYP+gd2woYedZLdbIsI+Sj0qC2q2O9vzxTsUd00Swb5u9t09V298w iaOjE/Ct0O2ECn3giM6lIHvo0hTspPMFJ+nNb2hTeUUVAuY1YU/Lf398+ryTsQcSgOdE DfrvaRJDZ9SmcVCS6mCy97LuJrGDNswr/nFrUsdgJLUYIMJJxFa4VhsnGZ7ahc0hWZ6n Xv+0YXLz4sy6Mk0+iOtMeM/jYWTtibYBiYjjd9opm44N8qChqMOgq3Mux3IAYND4tB+3 v8ndfmOJEoq4hi6uU/63Qj00SKgOe+Aqa4lWuYhMrkX8byaFvYz3f33bo+DScp766Tl9 +0ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DjOvguGwpqPc6BLXq5Ns/tOAfWECyyOyNijMIdao33Y=; b=AQFL3Y9DMNjs9wsL300IXuHEx2/1MEd2j0pVSo1aM2nRZswmfPwFf+eZT/Q8kgkFfm SsCaik93bFRvd2nOp6eRPieYWN9e8CQwNUg13R2rSbMA2l+c+HKpBpUHjOMXdbLbkyb4 Vm4ZnjaqtdwZMYr8IxPWy2dz+OP61GM0JDWab9USzOZWqGu+Yf8JpN6eQhz3kWTz3nBD 7NQSeTnWNFvpSrPwRRhpPwWKcTGqZTk3PENwW8DEVUC5qNf2osUxH0LrlsZLAhLnpTmB fXgHz9QQnJJI3Uhp4ILXnfDhiPJA60oOAQchK1+XeCLtiFS0gsoxJbp7VMx6nQMUtkFL xXBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si2381173edr.336.2020.09.09.15.36.03; Wed, 09 Sep 2020 15:36:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727087AbgIIWfw (ORCPT + 99 others); Wed, 9 Sep 2020 18:35:52 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:55702 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgIIWfw (ORCPT ); Wed, 9 Sep 2020 18:35:52 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kG8gm-0007LS-BT; Thu, 10 Sep 2020 08:35:41 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 10 Sep 2020 08:35:40 +1000 Date: Thu, 10 Sep 2020 08:35:40 +1000 From: Herbert Xu To: Joe Perches Cc: Keith Busch , "David S. Miller" , linux-crypto@vger.kernel.org, LKML , Jiri Kosina , Kees Cook , Nick Desaulniers Subject: Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break; Message-ID: <20200909223540.GA27590@gondor.apana.org.au> References: <20200909205558.GA3384631@dhcp-10-100-145-180.wdl.wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Sep 09, 2020 at 02:09:32PM -0700, Joe Perches wrote: > On Wed, 2020-09-09 at 13:55 -0700, Keith Busch wrote: > > On Wed, Sep 09, 2020 at 01:06:39PM -0700, Joe Perches wrote: > > > diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c > > > index eea0f453cfb6..8aac5bc60f4c 100644 > > > --- a/crypto/tcrypt.c > > > +++ b/crypto/tcrypt.c > > > @@ -2464,7 +2464,7 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) > > > test_hash_speed("streebog512", sec, > > > generic_hash_speed_template); > > > if (mode > 300 && mode < 400) break; > > > - fallthrough; > > > + break; > > > case 399: > > > break; > > > > Just imho, this change makes the preceding 'if' look even more > > pointless. Maybe the fallthrough was a deliberate choice? Not that my > > opinion matters here as I don't know this module, but it looked a bit > > odd to me. > > It does look odd to me too. > > It's also just a test module though so the > code isn't particularly crucial. > > Herbert/David? thoughts? Please read the function as a whole, that fallthrough (and every other one in do_test) needs to stay. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt