aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-10-03 14:33:28 +0200
committerMark Brown <broonie@kernel.org>2018-10-03 16:23:10 +0100
commitc24bfa8f21b59283580043dada19a6e943b6e426 (patch)
tree54b58a1514f00c6fd9d267e22caef566be2cb168 /drivers/spi
parentdt-bindings: spi: sh-msiof: Add r8a7744 support (diff)
downloadlinux-dev-c24bfa8f21b59283580043dada19a6e943b6e426.tar.xz
linux-dev-c24bfa8f21b59283580043dada19a6e943b6e426.zip
spi: slave: Fix missing break in switch
Apparently, this code does not actually fall through to the next case because the machine restarts before it has a chance. However, for the sake of maintenance and readability, we better add the missing break statement. Addresses-Coverity-ID: 1437892 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-slave-system-control.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-slave-system-control.c b/drivers/spi/spi-slave-system-control.c
index c0257e937995..169f3d595f60 100644
--- a/drivers/spi/spi-slave-system-control.c
+++ b/drivers/spi/spi-slave-system-control.c
@@ -60,6 +60,7 @@ static void spi_slave_system_control_complete(void *arg)
case CMD_REBOOT:
dev_info(&priv->spi->dev, "Rebooting system...\n");
kernel_restart(NULL);
+ break;
case CMD_POWEROFF:
dev_info(&priv->spi->dev, "Powering off system...\n");