]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fff86a7ca179a5b227b2f2554aca2e698a5c431
tree7fcb590bd6efcb633ca1838c8e28f5a853a5de7d
parent204b7272592fd2dcb36728ab072fde39799f7c75
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