mirror of https://github.com/thesofproject/sof.git
SRC: replace switch by if for readability
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>
This commit is contained in:
parent
0d9fd41b3b
commit
b513a45e10
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue