[PATCH] ALSA: bebob: remove an unnecessary condition in hwdep_read()

Takashi Iwai tiwai at suse.de
Tue Jan 26 07:31:45 CET 2021


On Mon, 25 Jan 2021 15:02:08 +0100,
Takashi Sakamoto wrote:
> 
> Drivers in ALSA firewire stack supports eventing to userspace
> applications via ALSA hwdep interface. All of the drivers supports stream
> lock events. Some of them supports their unique events according to
> specification of target device.
> 
> ALSA bebob driver supports the stream lock event only. In the case, it's
> enough to check condition only in loop with process blocking. However,
> current implementation check it again after breaking the loop.
> 
> This commit removes the redundant check.
> 
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Reported-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>

Thanks, applied now.


Takashi


More information about the Alsa-devel mailing list