diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-10-03 08:33:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-03 11:23:10 -0400 |
commit | c24bfa8f21b59283580043dada19a6e943b6e426 (patch) | |
tree | 54b58a1514f00c6fd9d267e22caef566be2cb168 /drivers/spi/spi-slave-system-control.c | |
parent | aeb8a43fa2649e00202960a55cbbd184bfc296d6 (diff) |
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) | |||
60 | case CMD_REBOOT: | 60 | case CMD_REBOOT: |
61 | dev_info(&priv->spi->dev, "Rebooting system...\n"); | 61 | dev_info(&priv->spi->dev, "Rebooting system...\n"); |
62 | kernel_restart(NULL); | 62 | kernel_restart(NULL); |
63 | break; | ||
63 | 64 | ||
64 | case CMD_POWEROFF: | 65 | case CMD_POWEROFF: |
65 | dev_info(&priv->spi->dev, "Powering off system...\n"); | 66 | dev_info(&priv->spi->dev, "Powering off system...\n"); |