Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1497616

[PATCH] drivers: staging: greybus: Fixed CHECKS for brace issues

From Chase Metzger <chasemetzger15@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] drivers: staging: greybus: Fixed CHECKS for brace issues
Date 2016-10-08 02:10 +0200
Message-ID <spNnc-7Z5-19@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Added braces to else statements where checkpatch complained.

Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
---
 drivers/staging/greybus/audio_codec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
index 8a0744b..1bdf849 100644
--- a/drivers/staging/greybus/audio_codec.c
+++ b/drivers/staging/greybus/audio_codec.c
@@ -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",
-- 
2.1.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] drivers: staging: greybus: Fixed CHECKS for brace issues Chase Metzger <chasemetzger15@gmail.com> - 2016-10-08 02:10 +0200
  Re: [PATCH] drivers: staging: greybus: Fixed CHECKS for brace issues Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-10-09 16:20 +0200

csiph-web