ALSA: firewire-lib: code refactoring for pool position in rx packets
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 7 Jan 2023 02:32:12 +0000 (11:32 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Jan 2023 14:00:09 +0000 (15:00 +0100)
commitf2bdee856f20e21416130c392a3ec527079a1226
tree50b1ddd725cd8317b0d93b1ddc90c276bae7363e
parent119c446a484a646a5762ff11ecff53c337f0e236
ALSA: firewire-lib: code refactoring for pool position in rx packets

When scheduling transmission of rx packets, current implementation
fulfils packet descriptors after pooling sequence descriptors. It is for
packet queueing. Besides the implementations do not necessarily have
good readability.

This commit refactors them by adding function local variables and
function arguments.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230107023214.29132-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c
sound/firewire/amdtp-stream.h