drivers: staging: greybus: audio_codec.c: Fixed CHECKS for brace issues
Subsystems (3)
PATCH 1/1 drivers: staging: greybus: audio_codec.c: Fixed CHECKS for brace issues
Added braces to else statement where checkpatch complained.
Signed-off-by Chase Metzger <[email protected]>
--- drivers/staging/greybus/audio_codec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/greybus/audio_codec.c +3 -1
@@ -655,8 +655,10 @@ static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream) ret =gb_audio_apbridgea_shutdown_rx (data->connection,0 ); params->state =GBAUDIO_CODEC_STOP ; - }else + }else { ret = -EINVAL ; + } +if (ret) dev_err_ratelimited(dai->dev, "%s:Error during %s %s stream:%d\n",
Signature · 1 line
2.1.4
Quoted 24 lines · Chase Metzger
Added braces to else statement where checkpatch complained.
Signed-off-by Chase Metzger <[email protected]>--- drivers/staging/greybus/audio_codec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/staging/greybus/audio_codec.c +3
-2@@ -655,8 +655,10 @@ static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream) ret =gb_audio_apbridgea_shutdown_rx (data->connection,0 ); params->state =GBAUDIO_CODEC_STOP ; - }else + }else { ret = -EINVAL ; + } +if (ret) dev_err_ratelimited(dai->dev, "%s:Error during %s %s stream:%d\n", --
Quoted 2 lines
2.1.4
Reviewed-by Vaibhav Agarwal <[email protected]>