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)
commitd656b4a6549f0f5863b7888b25a7b20d03ecbce7
tree9d37c23e174b36890f54cca237ea905f24b0f31e
parent0d4e399965738bb90dcee2fd5aeb15c1ccc81b42
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