diff options
Diffstat (limited to 'sound/drivers/vx/vx_cmd.c')
-rw-r--r-- | sound/drivers/vx/vx_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_cmd.c b/sound/drivers/vx/vx_cmd.c index 9529e3bf2866..23f4857f02c8 100644 --- a/sound/drivers/vx/vx_cmd.c +++ b/sound/drivers/vx/vx_cmd.c | |||
@@ -99,7 +99,8 @@ static struct vx_cmd_info vx_dsp_cmds[] = { | |||
99 | */ | 99 | */ |
100 | void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd) | 100 | void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd) |
101 | { | 101 | { |
102 | snd_assert(cmd < CMD_LAST_INDEX, return); | 102 | if (snd_BUG_ON(cmd >= CMD_LAST_INDEX)) |
103 | return; | ||
103 | rmh->LgCmd = vx_dsp_cmds[cmd].length; | 104 | rmh->LgCmd = vx_dsp_cmds[cmd].length; |
104 | rmh->LgStat = vx_dsp_cmds[cmd].st_length; | 105 | rmh->LgStat = vx_dsp_cmds[cmd].st_length; |
105 | rmh->DspStat = vx_dsp_cmds[cmd].st_type; | 106 | rmh->DspStat = vx_dsp_cmds[cmd].st_type; |