summaryrefslogtreecommitdiffstats
path: root/tools/spi
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-02-13 12:16:05 +0800
committerMark Brown <broonie@kernel.org>2020-02-13 13:16:59 +0000
commit020bd6c48ebd864d42b5b551a87a323e443918a6 (patch)
tree355369b5ecdd36a85a346b35cf0d5f11769420dd /tools/spi
parente9e40543ad5b38b848879768359fd13650529961 (diff)
downloadlinux-020bd6c48ebd864d42b5b551a87a323e443918a6.tar.bz2
spi: spidev_test: Remove break after exit statement
When call print_usage() in parse_opts(), it will exit directly. Since break is not useful after exit statement, remove it. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/1581567368-8055-1-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/spi')
-rw-r--r--tools/spi/spidev_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/spi/spidev_test.c b/tools/spi/spidev_test.c
index 3559e7646256..113b1e1d62ca 100644
--- a/tools/spi/spidev_test.c
+++ b/tools/spi/spidev_test.c
@@ -283,7 +283,6 @@ static void parse_opts(int argc, char *argv[])
break;
default:
print_usage(argv[0]);
- break;
}
}
if (mode & SPI_LOOP) {