ALSA: seq: prioq: Unify cell removal functions
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Feb 2024 13:21:52 +0000 (14:21 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Feb 2024 16:27:18 +0000 (17:27 +0100)
commitec89fc1b71766c9e7a122f8ba7a21933fe6a95b4
treec7b65b4b126582d9fc740ee35afdaf6cc27158fd
parentbc80e83ebbb274fcd40b17dd8c4f8a6b74808feb
ALSA: seq: prioq: Unify cell removal functions

Both snd_seq_prioq_remove_events() and snd_seq_prioq_leave() have a
very similar loop for removing events.  Unify them with a callback for
code simplification.

Only the code refactoring, and no functional changes.

Link: https://lore.kernel.org/r/20240222132152.29063-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_prioq.c