[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0c66fbe5-c48b-7dc1-f7fe-1498da9cc1a3@linux.ibm.com>
Date: Thu, 10 Sep 2020 11:18:29 +0200
From: Steffen Maier <maier@...ux.ibm.com>
To: Joe Perches <joe@...ches.com>, LKML <linux-kernel@...r.kernel.org>,
Jiri Kosina <trivial@...nel.org>,
Benjamin Block <bblock@...ux.ibm.com>
Cc: Kees Cook <kees.cook@...onical.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.cs.columbia.edu,
linux-mips@...r.kernel.org, linux-s390@...r.kernel.org,
linux-crypto@...r.kernel.org, linux-ide@...r.kernel.org,
linux-atm-general@...ts.sourceforge.net, netdev@...r.kernel.org,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
nouveau@...ts.freedesktop.org, linux-input@...r.kernel.org,
linux-i2c@...r.kernel.org, linux-rdma@...r.kernel.org,
iommu@...ts.linux-foundation.org, dm-devel@...hat.com,
linux-media@...r.kernel.org, linux-mmc@...r.kernel.org,
linux-mtd@...ts.infradead.org, intel-wired-lan@...ts.osuosl.org,
oss-drivers@...ronome.com, linux-usb@...r.kernel.org,
linux-wireless@...r.kernel.org, linux-mediatek@...ts.infradead.org,
linux-nvme@...ts.infradead.org, linux-pm@...r.kernel.org,
linux-rtc@...r.kernel.org, linux-scsi@...r.kernel.org,
storagedev@...rochip.com, sparclinux@...r.kernel.org,
linux-serial@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-parisc@...r.kernel.org, linux-fbdev@...r.kernel.org,
linux-afs@...ts.infradead.org, ceph-devel@...r.kernel.org,
linux-nfs@...r.kernel.org, bpf@...r.kernel.org,
dccp@...r.kernel.org, netfilter-devel@...r.kernel.org,
coreteam@...filter.org, linux-sctp@...r.kernel.org,
alsa-devel <alsa-devel@...a-project.org>
Subject: Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to
break;
On 9/9/20 10:06 PM, Joe Perches wrote:
> fallthrough to a separate case/default label break; isn't very readable.
>
> Convert pseudo-keyword fallthrough; statements to a simple break; when
> the next label is case or default and the only statement in the next
> label block is break;
>
> Found using:
>
> $ grep-2.5.4 -rP --include=*.[ch] -n "fallthrough;(\s*(case\s+\w+|default)\s*:\s*){1,7}break;" *
>
> Miscellanea:
>
> o Move or coalesce a couple label blocks above a default: block.
>
> Signed-off-by: Joe Perches <joe@...ches.com>
> ---
>
> Compiled allyesconfig x86-64 only.
> A few files for other arches were not compiled.
> drivers/s390/scsi/zfcp_fsf.c | 2 +-
> 82 files changed, 109 insertions(+), 112 deletions(-)
> diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
> index 140186fe1d1e..2741a07df692 100644
> --- a/drivers/s390/scsi/zfcp_fsf.c
> +++ b/drivers/s390/scsi/zfcp_fsf.c
> @@ -2105,7 +2105,7 @@ static void zfcp_fsf_open_lun_handler(struct zfcp_fsf_req *req)
>
> case FSF_PORT_HANDLE_NOT_VALID:
> zfcp_erp_adapter_reopen(adapter, 0, "fsouh_1");
> - fallthrough;
> + break;
> case FSF_LUN_ALREADY_OPEN:
> break;
> case FSF_PORT_BOXED:
Acked-by: Steffen Maier <maier@...ux.ibm.com> # for zfcp
--
Mit freundlichen Gruessen / Kind regards
Steffen Maier
Linux on IBM Z Development
https://www.ibm.com/privacy/us/en/
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Matthias Hartmann
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
Powered by blists - more mailing lists