diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-03 14:33:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-03 16:23:10 +0100 |
commit | c24bfa8f21b59283580043dada19a6e943b6e426 (patch) | |
tree | 54b58a1514f00c6fd9d267e22caef566be2cb168 /drivers/spi/spi-slave-system-control.c | |
parent | aeb8a43fa2649e00202960a55cbbd184bfc296d6 (diff) | |
download | linux-c24bfa8f21b59283580043dada19a6e943b6e426.tar.gz linux-c24bfa8f21b59283580043dada19a6e943b6e426.tar.bz2 linux-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/spi-slave-system-control.c')
-rw-r--r-- | drivers/spi/spi-slave-system-control.c | 1 |
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"); |