summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/audio_codec.c
diff options
context:
space:
mode:
authorDavid Lin <dtwlin@google.com>2016-06-24 13:52:43 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-24 16:06:51 -0700
commit9e138dd479cb1f924a3d78e13e6ba5668db73acc (patch)
treebfd3199b727d071eed79fb16554f57fca4f741ff /drivers/staging/greybus/audio_codec.c
parent2d466c23c64f7556d0a184a1f02b2c8a23edaf5e (diff)
downloadlinux-9e138dd479cb1f924a3d78e13e6ba5668db73acc.tar.bz2
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: David Lin <dtwlin@google.com> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_codec.c')
-rw-r--r--drivers/staging/greybus/audio_codec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
index 45e12b1d8627..3c5a5aeeef8a 100644
--- a/drivers/staging/greybus/audio_codec.c
+++ b/drivers/staging/greybus/audio_codec.c
@@ -1099,7 +1099,6 @@ static int gbcodec_write(struct snd_soc_codec *codec, unsigned int reg,
return 0;
BUG_ON(reg >= GBCODEC_REG_COUNT);
- return 0;
gbcodec_reg[reg] = value;
dev_dbg(codec->dev, "reg[%d] = 0x%x\n", reg, value);