25 Sep
2017
25 Sep
'17
9:52 p.m.
MISRA C:2012, 16.5: Every switch statement shall have at least two switch-clauses
Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com --- src/audio/src.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/audio/src.c b/src/audio/src.c index 2b94854..3fd9614 100644 --- a/src/audio/src.c +++ b/src/audio/src.c @@ -509,12 +509,8 @@ static int src_cmd(struct comp_dev *dev, int cmd, void *data) if (ret < 0) return ret;
- switch (cmd) { - case COMP_CMD_SET_VALUE: - return src_ctrl_cmd(dev, cdata); - default: - break; - } + if (cmd == COMP_CMD_SET_VALUE) + ret = src_ctrl_cmd(dev, cdata);
return ret; }
--
2.11.0