]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: remove function local variable with alternative evaluation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Jun 2017 21:37:03 +0000 (06:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jun 2017 21:40:34 +0000 (23:40 +0200)
commit63392829151ba5e63b28187d62281256a9565b5e
tree9d37c23e174b36890f54cca237ea905f24b0f31e
parent8fff86a7ca179a5b227b2f2554aca2e698a5c431
ALSA: pcm: remove function local variable with alternative evaluation

A local variable is used to judge whether a parameter should be handled
due to reverse dependency of the other rules. However, this can be
obsoleted by check of a sentinel in dependency array.

This commit removes the local variable and check the sentinel to reduce
stack usage.

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