Commit 3d1390389fe8124b2afde7fdbe306cbe2a99019d
Committed by
Greg Kroah-Hartman
1 parent
4e6a8ffba2
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
staging: line6: clean up line6_variax_process_message()
Previous versions of the line6 driver snooped MIDI traffic in order to make device state accessible via sysfs attributes. This involved a lot of logic in line6_variax_process_message() that has since been removed. Drop unused conditionals in line6_variax_process_message(). Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 0 additions and 14 deletions Side-by-side Diff
drivers/staging/line6/variax.c
... | ... | @@ -133,13 +133,6 @@ |
133 | 133 | const unsigned char *buf = variax->line6.buffer_message; |
134 | 134 | |
135 | 135 | switch (buf[0]) { |
136 | - case LINE6_PARAM_CHANGE | LINE6_CHANNEL_HOST: | |
137 | - break; | |
138 | - | |
139 | - case LINE6_PROGRAM_CHANGE | LINE6_CHANNEL_DEVICE: | |
140 | - case LINE6_PROGRAM_CHANGE | LINE6_CHANNEL_HOST: | |
141 | - break; | |
142 | - | |
143 | 136 | case LINE6_RESET: |
144 | 137 | dev_info(variax->line6.ifcdev, "VARIAX reset\n"); |
145 | 138 | break; |
... | ... | @@ -154,13 +147,6 @@ |
154 | 147 | variax_startup4((unsigned long)variax); |
155 | 148 | } |
156 | 149 | break; |
157 | - | |
158 | - case LINE6_SYSEX_END: | |
159 | - break; | |
160 | - | |
161 | - default: | |
162 | - dev_dbg(variax->line6.ifcdev, | |
163 | - "Variax: unknown message %02X\n", buf[0]); | |
164 | 150 | } |
165 | 151 | } |
166 | 152 |