diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-10-03 12:33:28 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2018-10-03 15:23:10 +0000 |
| commit | c24bfa8f21b59283580043dada19a6e943b6e426 (patch) | |
| tree | 54b58a1514f00c6fd9d267e22caef566be2cb168 /drivers/spi/spi-slave-system-control.c | |
| parent | dt-bindings: spi: sh-msiof: Add r8a7744 support (diff) | |
| download | kernel-c24bfa8f21b59283580043dada19a6e943b6e426.tar.gz kernel-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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
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"); |
