From 846dfd4b86c6b56396a29aef7deaa61e0b1fd63d Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 27 Feb 2019 08:13:24 -0600 Subject: [PATCH] spi: spi_intel: Fix missing 'break' in case Coverity scan found issue with a missing 'break' statement. Fix push_data by adding the break after handling the 1 byte case. Coverity CID: 190978 Fixes #13842 Signed-off-by: Kumar Gala --- drivers/spi/spi_intel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi_intel.c b/drivers/spi/spi_intel.c index 77eb74f0a0..c0539b6a00 100644 --- a/drivers/spi/spi_intel.c +++ b/drivers/spi/spi_intel.c @@ -96,6 +96,7 @@ static void push_data(struct device *dev) case 1: data = UNALIGNED_GET((u8_t *) (spi->ctx.tx_buf)); + break; case 2: data = UNALIGNED_GET((u16_t *) (spi->ctx.tx_buf));