]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: asihpi: Simplify error handling in PCM substream setup
authorJihed Chaibi <jihed.chaibi.dev@gmail.com>
Sun, 14 Sep 2025 20:59:45 +0000 (22:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Sep 2025 07:25:47 +0000 (09:25 +0200)
commitc29287bb32bc72a037c34d84a160060a6122b7ed
tree0086c1b5c9e91e74750c62b61a5d24b8593f4698
parente135eeef0b25d44fe71dc3b71b0106d48d825470
ALSA: asihpi: Simplify error handling in PCM substream setup

Refactor error handling in the PCM substream setup to combine redundant
checks and improve code readability. Free the dpcm structure and return
appropriate error codes (-EBUSY for HPI_ERROR_OBJ_ALREADY_OPEN, -EIO
for other errors) in a single block.

Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c