Commit 9e138dd4 authored by David Lin's avatar David Lin Committed by Greg Kroah-Hartman

greybus: audio: remove the unnecessary return statement

The return statement immediately after the BUG_ON of the gbcodec_write()
call is added by mistake. It's not causing any errors right now due to
that gbcodec_reg is currently not being used.

Testing Done:
- Audio playback on EVT2
Signed-off-by: default avatarDavid Lin <dtwlin@google.com>
Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2d466c23
...@@ -1099,7 +1099,6 @@ static int gbcodec_write(struct snd_soc_codec *codec, unsigned int reg, ...@@ -1099,7 +1099,6 @@ static int gbcodec_write(struct snd_soc_codec *codec, unsigned int reg,
return 0; return 0;
BUG_ON(reg >= GBCODEC_REG_COUNT); BUG_ON(reg >= GBCODEC_REG_COUNT);
return 0;
gbcodec_reg[reg] = value; gbcodec_reg[reg] = value;
dev_dbg(codec->dev, "reg[%d] = 0x%x\n", reg, value); dev_dbg(codec->dev, "reg[%d] = 0x%x\n", reg, value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment