Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3041330pxa; Tue, 25 Aug 2020 09:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgVan1iIxYOQ9Bz8QZn1JuI5eSrQ2J5eR3hG/qUvAPeNccnYErjQ8svpak39r1x3ExMflk X-Received: by 2002:a17:906:4ad5:: with SMTP id u21mr3071058ejt.468.1598374267304; Tue, 25 Aug 2020 09:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598374267; cv=none; d=google.com; s=arc-20160816; b=Aa7f8gFs3U1PG9RzfvYM9hblvOBYL+smZ0CGFleO3ofw+euq5zdDhi3xzWZMTue0Pt wYoCyoRrXs/Mbh3dz2e9ex70esCVm/4RbVfs+sr/VJouuSl/5caENXFyR04ELc1vRWTw nTQ8RFjL8Qisk2cs8jRjOMaXeJQdLE/9Q7GAMmhXdIEUH9N0RBl9pCihCzIxN3+vbRJH JuzkqTD59KaXXzbJ91nlq/tTvyDV7ifWq9xXShN5cUYYPaaZnscqnATjmVZO0QdGURMH vOLI/0ZNsMESo65LY0NRwJH35Dr8Tt+0MiZtg7iJ6llkNAqtZawXXqFcVYLMym5WOyjd lCXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=BALB3V09awtVs12tpJyayic2+ng0GWLKvRpkRinhZW0=; b=ptuI3tiuweY74Jcr6eqEpU+3NJSg69UojchhL4xuL791084AfSD5pLXcnf8U3YotCP awBLbxShiKVwhnhQ3wiEKEgtI7iuXlWb0rg6f9naMZCAAYQauZGbHLwdnJjh0D98gozY QRVbZji8BypHL4cWvImoeGtBSVXLkUiTMk4SHUJJaWG5lAPymF93lTrfeCg4zgeDQtCB BJ1d3UQNampSw3Pk0R0w/CI1gjYeRU2Bu+T0YHWpAJs3IakN0Djq3NIz5qiaLpFfZykK Pfc6NAcgMLjRzWj3Cm17polQrG+qbqciKNaymfWaAEKTKxDK8U7HGzqGmUA6wWL5ABq3 +mPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 v24si5900336ejj.497.2020.08.25.09.50.44; Tue, 25 Aug 2020 09:51:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbgHYQr6 (ORCPT + 99 others); Tue, 25 Aug 2020 12:47:58 -0400 Received: from smtprelay0188.hostedemail.com ([216.40.44.188]:41284 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725805AbgHYQr5 (ORCPT ); Tue, 25 Aug 2020 12:47:57 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id EE3E8837F24D; Tue, 25 Aug 2020 16:47:55 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:2911:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4425:5007:7903:10004:10400:10848:11232:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14096:14097:14659:14721:14877:21064:21080:21433:21451:21627:21939:21990:30003:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: form08_42108202705d X-Filterd-Recvd-Size: 2494 Received: from XPS-9350 (unknown [172.58.35.126]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Tue, 25 Aug 2020 16:47:53 +0000 (UTC) Message-ID: <777e01f8dc9bd35e8b7bdf1b5181d0d13b86d8b9.camel@perches.com> Subject: Re: [PATCH] IB/qib: remove superfluous fallthrough statements From: Joe Perches To: "Gustavo A. R. Silva" , Alex Dewar Cc: Dennis Dalessandro , Mike Marciniszyn , Doug Ledford , Jason Gunthorpe , Roland Dreier , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 25 Aug 2020 09:47:50 -0700 In-Reply-To: References: <20200825155142.349651-1-alex.dewar90@gmail.com> <4877c3a5-365e-4500-43c0-4a4361e2cda3@embeddedor.com> <086ee29ef75f657dcf45e92d4ebfdf2b3f4fcab8.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-08-25 at 11:49 -0500, Gustavo A. R. Silva wrote: > > On 8/25/20 11:26, Joe Perches wrote: > > On Tue, 2020-08-25 at 11:19 -0500, Gustavo A. R. Silva wrote: > > > On 8/25/20 10:51, Alex Dewar wrote: > > > > Commit 36a8f01cd24b ("IB/qib: Add congestion control agent implementation") > > > > erroneously marked a couple of switch cases as /* FALLTHROUGH */, which > > > > were later converted to fallthrough statements by commit df561f6688fe > > > > ("treewide: Use fallthrough pseudo-keyword"). This triggered a Coverity > > > > warning about unreachable code. > > > > > > > > Remove the fallthrough statements and replace the mass of gotos with > > > > simple return statements to make the code terser and less bug-prone. > > > > > > > > > > This should be split up into two separate patches: one to address the > > > fallthrough markings, and another one for the gotos. > > > > I don't think it's necessary to break this into multiple patches. > > Logical changes in a single patch are just fine, micro patches > > aren't that useful. > > > > There is a reason for this. Read the changelog text and review the patch. What makes you think I didn't already do that? I think your desire for micropatches is unnecessary.