Skip to contentSkip to conversation

drivers: staging: greybus: audio_codec.c: Fixed CHECKS for brace issues

PATCH In review Chase Metzger 2 participants 2 messages Oct 9, 2016 – Oct 10, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: staging: greybus: audio_codec.c: Fixed CHECKS for brace issues

Added braces to else statement where checkpatch complained.

---
 drivers/staging/greybus/audio_codec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/greybus/audio_codec.c +3 -1
index 8a0744b..1bdf849 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Chase Metzger

Added braces to else statement where checkpatch complained.

---
 drivers/staging/greybus/audio_codec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/greybus/audio_codec.c +3 -2
index 8a0744b..1bdf849 100644
@@ -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