Re: [PATCH] line6: add a check for snd_card_register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Dec 2018 04:39:31 +0100,
Kangjie Lu wrote:
> 
> The fix checks if snd_card_register() fails, and if so, issues a
> warning.
> 
> Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>

Hmm, you submitted multiple patches doing the similar things but the
error messages are handled completely differently in both cases.
Please make them consistent.

... and above all:

> -	snd_card_register(line6->card);
> +	if (snd_card_register(line6->card))
> +		pr_warn("Failed to register ALSA card.\n");

This error message is almost useless.  Better to use dev_*() variant.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux