OSDN Git Service

ALSA: ump: Drop redundant check of note-on with zero velocity
authorTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2023 08:31:23 +0000 (10:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2023 08:32:58 +0000 (10:32 +0200)
commitab2335daa6ef70df56c98c216261a93e28ae52b3
tree8215afa20eb67863b3cc77b3191dbc810215ef5a
parentdafb82e7d39767f11660705a518a551251fbdfe4
ALSA: ump: Drop redundant check of note-on with zero velocity

The check of a note-on event with zero velocity is done twice, and the
latter one is superfluous.  Let's drop it.

Fixes: 0b5288f5fe63 ("ALSA: ump: Add legacy raw MIDI support")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/4683198a-84f6-4238-9e87-c70667d84523@kili.mountain
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20230525083124.15277-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump_convert.c