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 <kumar.gala@linaro.org>
This commit is contained in:
parent
c2a70a2710
commit
846dfd4b86
|
@ -96,6 +96,7 @@ static void push_data(struct device *dev)
|
||||||
case 1:
|
case 1:
|
||||||
data = UNALIGNED_GET((u8_t *)
|
data = UNALIGNED_GET((u8_t *)
|
||||||
(spi->ctx.tx_buf));
|
(spi->ctx.tx_buf));
|
||||||
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
data = UNALIGNED_GET((u16_t *)
|
data = UNALIGNED_GET((u16_t *)
|
||||||
(spi->ctx.tx_buf));
|
(spi->ctx.tx_buf));
|
||||||
|
|
Loading…
Reference in a new issue