From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [PATCH] wireless: mark expected switch fall-throughs Date: Fri, 06 Jul 2018 14:29:24 +0200 Message-ID: <1530880164.3197.38.camel@sipsolutions.net> References: <20180704210553.GA7869@embeddedor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: "Gustavo A. R. Silva" , "David S. Miller" Return-path: In-Reply-To: <20180704210553.GA7869@embeddedor.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Hi Gustavo, > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. You dropped the remark saying you didn't review them, but did you? > case NL80211_CHAN_WIDTH_20: > if (!ht_cap->ht_supported) > return false; > + /* else: fall through */ What's the point in else:? We also don't necessarily write if (!...) return false; else do_something(); but rather if (!...) return false; do_something(). I think I'd prefer without the "else:" johannes