[alsa-devel] [PATCH 03/34] pcm: change code formatting for snd_pcm_get_params()

Takashi Sakamoto o-takashi at sakamocchi.jp
Thu Jul 14 16:07:20 CEST 2016


This commit applies code format according to typical and moderate rule,
for snd_pcm_get_params().

Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
 src/pcm/pcm.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c
index 4cace0b..23655e6 100644
--- a/src/pcm/pcm.c
+++ b/src/pcm/pcm.c
@@ -8484,11 +8484,9 @@ int snd_pcm_get_params(snd_pcm_t *pcm,
 	err = snd_pcm_hw_params_current(pcm, hw);
 	if (err < 0)
 	        return err;
-        err = INTERNAL(snd_pcm_hw_params_get_buffer_size)(hw, buffer_size);
-        if (err < 0)
-                return err;
-        err = INTERNAL(snd_pcm_hw_params_get_period_size)(hw, period_size, NULL);
-        if (err < 0)
-                return err;
-	return 0;
+	err = INTERNAL(snd_pcm_hw_params_get_buffer_size)(hw, buffer_size);
+	if (err < 0)
+		return err;
+	return INTERNAL(snd_pcm_hw_params_get_period_size)(hw, period_size,
+							   NULL);
 }
-- 
2.7.4



More information about the Alsa-devel mailing list