OSDN Git Service

ALSA: pcm: use goto statement instead of while statement to reduce indentation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Jun 2017 21:37:02 +0000 (06:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jun 2017 21:40:32 +0000 (23:40 +0200)
commit0d4e399965738bb90dcee2fd5aeb15c1ccc81b42
tree7fcb590bd6efcb633ca1838c8e28f5a853a5de7d
parent9cc07f55d42be47ad2b06dae9541d9fd964c3287
ALSA: pcm: use goto statement instead of while statement to reduce indentation

In a process to calculate parameters of PCM substream, application of all
rules is iterated several times till parameter dependencies are satisfied.
In current implementation, two loops are used for the design, however this
brings two-level indentation and decline readability.

This commit attempts to reduce the indentation by using goto statement,
instead of outer while loop.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c