ALSA: firewire-motu: fix unreleased lock warning in hwdep device
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 30 Jan 2023 14:15:40 +0000 (23:15 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2023 08:34:04 +0000 (09:34 +0100)
commitc7a806d9ce6757ff56078674916e53bd859f242d
tree176283250d168bba585ec4a0022548214db49671
parent4f876bfdb731a320089c5a64f8fa15fbba14418c
ALSA: firewire-motu: fix unreleased lock warning in hwdep device

Smatch static analysis tool detects that acquired lock is not released
in hwdep device when condition branch is passed due to no event. It is
unlikely to occur, while fulfilling is preferable for better coding.

Reported-by: Dan Carpenter <error27@gmail.com>
Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230130141540.102854-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-hwdep.c