[03/34] pcm: change code formatting for snd_pcm_get_params()
diff mbox

Message ID 1468505271-5769-4-git-send-email-o-takashi@sakamocchi.jp
State New
Headers show

Commit Message

Takashi Sakamoto July 14, 2016, 2:07 p.m. UTC
This commit applies code format according to typical and moderate rule,
for snd_pcm_get_params().

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

Patch
diff mbox

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);
 }