riscv-openocd/src/flash/nor
Antonio Borneo 9b29cb58ac coding style: remove useless break after a goto or return
In a switch/case statement, a break placed after a goto or return
is never executed.
The script checkpatch available in Linux kernel v5.1 issues a
warning for such unused break statements.
In the process of reviewing the new checkpatch for its inclusion
in OpenOCD, let's get rid of these warnings.

The script checkpatch is unable to fixup automatically this case.
Thanks to having "break" command using a single code line, this
patch has been generated using the script below:

	find src/ -type f -exec ./tools/scripts/checkpatch.pl -q \
	 --types UNNECESSARY_BREAK -f {} \; \
	| sed -n '/^#/{s/^.*FILE: //;s/:$//;s/:/ /;p}' \
	| awk 'function P() {print "sed -i '\''"b"'\'' "a};
	       {
	         if ($1!=a) {
	           if (a) {P()};
	           a=$1;
	           b=$2"{d}";
	         } else {
	           b=b";"$2"{d}"
	         }
	       };
	       END {P()}'

Change-Id: I56ca098faa5fe8d1e3f712dc0a029a3f10559d99
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5617
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
2020-05-09 14:39:05 +01:00
..
Makefile.am Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
aduc702x.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
aducm360.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
ambiqmicro.c coding style: use ARRAY_SIZE() when possible 2020-02-15 15:37:40 +00:00
at91sam3.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
at91sam4.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
at91sam4l.c src/flash/nor/at91sam3|4l|7: fix clang static analyzer warnings 2020-03-07 15:28:40 +00:00
at91sam7.c src/flash/nor/at91sam3|4l|7: fix clang static analyzer warnings 2020-03-07 15:28:40 +00:00
at91samd.c Add support for SAMD21E17D device 2020-03-02 15:11:45 +00:00
ath79.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
atsame5.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
atsamv.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
avrf.c flash/nor/avrf: Minor code cleanups 2020-05-09 14:34:32 +01:00
bluenrg-x.c bluenrg-x: simplyfied the driver 2020-03-07 15:31:09 +00:00
bluenrg-x.h bluenrg-x: simplyfied the driver 2020-03-07 15:31:09 +00:00
cc26xx.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
cc26xx.h flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc3220sf.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
cc3220sf.h flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cfi.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
cfi.h flash/nor: Export various functions from the CFI core 2020-02-06 17:15:16 +00:00
core.c flash/nor/core: adjust flash_iterate_address_range_inner() for 64-bit 2019-03-27 08:53:29 +00:00
core.h flash/nor/core: fix some minor typo 2019-08-04 09:31:38 +01:00
driver.h Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
drivers.c flash/nor: Add Renesas RPC HF driver 2020-02-06 17:15:21 +00:00
dsp5680xx_flash.c coding style: fix space around pointer's asterisk 2020-02-24 10:30:36 +00:00
efm32.c flash/nor/efm32: Some small code cleanups 2020-05-09 14:36:04 +01:00
em357.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
esirisc_flash.c esirisc_flash: Rename PAGE_SIZE to FLASH_PAGE_SIZE 2019-09-18 07:05:08 +01:00
faux.c command_registration: add empty usage field to chained commands 2019-04-07 08:17:36 +01:00
fespi.c flash/fespi: Use COMMAND_PARSE_ADDRESS 2019-04-24 21:11:18 +01:00
fm3.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
fm4.c flash/nor/fm4,tms470: fix clang static analyzer warnings 2020-03-07 15:28:53 +00:00
imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
jtagspi.c helper/binarybuffer: fix clang static analyzer warnings 2020-03-07 15:30:05 +00:00
kinetis.c flash/nor/kinetis: Minor code cleanups 2020-05-09 14:34:15 +01:00
kinetis_ke.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
lpc288x.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
lpc2000.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
lpc2900.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
lpcspifi.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
max32xxx.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
mdr.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
mrvlqspi.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
msp432.c flash/nor: update support for TI MSP432 devices 2020-03-07 15:32:24 +00:00
msp432.h flash/nor: update support for TI MSP432 devices 2020-03-07 15:32:24 +00:00
niietcm4.c nor/niietcm4: fix indentation 2019-05-14 19:38:00 +01:00
non_cfi.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
non_cfi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nrf5.c nrf5: Refresh the watchdog while flashing 2020-04-21 16:40:35 +01:00
numicro.c flash/nor/numicro: use flash infrastructure to align write 2020-03-07 15:29:03 +00:00
ocl.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
ocl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
pic32mx.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
psoc4.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
psoc5lp.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
psoc6.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
renesas_rpchf.c flash/nor: Add Renesas RPC HF driver 2020-02-06 17:15:21 +00:00
sh_qspi.c flash/nor/sh_qspi: Add SH QSPI driver 2020-01-22 05:50:20 +00:00
sim3x.c coding style: fix space around pointer's asterisk 2020-02-24 10:30:36 +00:00
spi.c flash/nor/spi: add adesto AT25DF081A 2018-12-19 13:16:45 +00:00
spi.h SPI table updates (some new devices and new info) 2018-11-29 08:18:24 +00:00
stellaris.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
stm32f1x.c flash/stm32f1x: fix maximum flash size for some devices 2020-04-05 14:10:47 +01:00
stm32f2x.c flash/nor/stm32f2x: Support value line chips with trimmed flash 2020-01-03 10:28:45 +00:00
stm32h7x.c flash/stm32h7x: Use proper flash regs base for bank 1 2020-04-05 14:28:17 +01:00
stm32l4x.c flash/stm32l4x: always use stm32l4_get_flash_reg 2020-05-03 21:43:13 +01:00
stm32l4x.h Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
stm32lx.c flash/nor/stm32lx: Minor code cleanups 2020-02-15 15:34:01 +00:00
stmsmi.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
str7x.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
str9x.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
str9xpec.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
swm050.c flash/nor: flash driver for Synwit SWM050 MCUs 2019-09-08 11:53:12 +01:00
tcl.c flash/nor: add flash mdw/h/b commands 2020-04-21 16:47:43 +01:00
tms470.c flash/nor/fm4,tms470: fix clang static analyzer warnings 2020-03-07 15:28:53 +00:00
virtual.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
w600.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
xcf.c coding style: remove useless break after a goto or return 2020-05-09 14:39:05 +01:00
xmc1xxx.c Constify struct flash_driver instances 2019-03-27 08:57:14 +00:00
xmc4xxx.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00