[Sound-open-firmware] [PATCH 2/2] dai: add fall through comment in switch case

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Thu Jan 18 21:31:00 CET 2018


Explicitly comment that the fall through in a switch case is not
a typo to make Coverity warnings go away.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
 src/audio/dai.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/audio/dai.c b/src/audio/dai.c
index b7ad1b4..1112ec9 100644
--- a/src/audio/dai.c
+++ b/src/audio/dai.c
@@ -559,6 +559,7 @@ static int dai_cmd(struct comp_dev *dev, int cmd, void *data)
 		break;
 	case COMP_CMD_XRUN:
 		dd->xrun = 1;
+		/* fall through */
 	case COMP_CMD_PAUSE:
 	case COMP_CMD_STOP:
 		wait_init(&dd->complete);
-- 
2.14.1



More information about the Sound-open-firmware mailing list