Re: [PATCH] ALSA: pcm: Simplify success check in snd_pcm_open_file()

From: Takashi Iwai

Date: Mon Sep 14 2026 - 12:15:26 EST


On Mon, 14 Sep 2026 11:52:48 +0200,
phucduc.bui@xxxxxxxxx wrote:
>
> From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>
> snd_pcm_open_file() returns zero on success and a negative error code
> on failure. Use !err to check for a successful return instead of
> checking for a non-negative value.
>
> Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>

Applied to for-next branch now. Thanks.


Takashi