sound: seq: check struct system assignment problem
PATCH 1/1 sound: seq: check struct system assignment problem
make data->system.parm1 avoid double assignment. but note writes "RT message with two parameters to UMP" is one of assignment is for system.parm2?
I'm not sure, Could you help check it out? Thank you!
Signed-off-by Minjie Du <[email protected]>
--- sound/core/seq/seq_ump_convert.c | 1 - 1 file changed, 1 deletion(-)
sound/core/seq/seq_ump_convert.c +0 -1
@@ -713,7 +713,6 @@ static int system_2p_ev_to_ump_midi1(const struct snd_seq_event *event, unsigned char status) { data->system.status = status; - data->system.parm1 = (event->data.control.value >>7 ) &0x7f ; data->system.parm1 = event->data.control.value &0x7f ;return 1 ; }
Signature · 1 line
2.39.0
Quoted 4 lines · Minjie Du
make
data->system.parm1avoid double assignment. but note writes "RT message with two parameters to UMP" is one of assignment is for system.parm2?
Yes, that should be rather parm2.
Could you resubmit with that typo fix instead?
Thanks!
Takashi
Quoted 24 lines
I'm not sure, Could you help check it out?
Thank you!Signed-off-by Minjie Du <[email protected]>--- sound/core/seq/seq_ump_convert.c | 1 - 1 file changed, 1 deletion(-)sound/core/seq/seq_ump_convert.c +0
-1@@ -713,7 +713,6 @@ static int system_2p_ev_to_ump_midi1(const struct snd_seq_event *event, unsigned char status) { data->system.status = status; - data->system.parm1 = (event->data.control.value >>7 ) &0x7f ; data->system.parm1 = event->data.control.value &0x7f ;return 1 ; }Signature · 1 line
2.39.0