ALSA: bebob: remove an unnecessary condition in hwdep_read()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 25 Jan 2021 14:02:08 +0000 (23:02 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 26 Jan 2021 06:31:13 +0000 (07:31 +0100)
commite32da5eb627c9dd60fd245cb5beb3079e96890d1
tree11caa8222a0ef85482661f933c804d6080ce1022
parentf4514249d6483effbc08984ed908fc741de798f0
ALSA: bebob: remove an unnecessary condition in hwdep_read()

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@oracle.com>
Reported-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210125140208.26318-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_hwdep.c