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