OSDN Git Service

alsactl: move alloca out of loop
authorClemens Ladisch <clemens@ladisch.de>
Wed, 26 May 2010 08:18:43 +0000 (10:18 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Wed, 26 May 2010 08:18:43 +0000 (10:18 +0200)
commitad47784b01b9dd532ba2c2249547ce55505bbf08
treeb5b707ac44f511d23379eab8ced4048635e8fedf
parente509df69a5100df28921980362488f6947df0aae
alsactl: move alloca out of loop

Reserving new space from the stack in every loop iteration is not
necessary, so move the call to snd_ctl_elem_id_alloca outside where it
is executed only once.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
alsactl/state.c