]> 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)
commit9b68dee6353590b16bc57b3f4797cec5b1721f5d
tree7fcb590bd6efcb633ca1838c8e28f5a853a5de7d
parent7a95f0c871014d78cd343bc92922bef9ec7d3c38
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