Commit 4efd7d8f authored by Mark Hills's avatar Mark Hills Committed by Takashi Iwai

ALSA: snd-usb-caiaq: Simplify single case to an 'if'

After removing code, only one case remains. So use an 'if' instead.
Acked-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarMark Hills <mark@pogo.org.uk>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent bd4cbf6c
...@@ -95,11 +95,9 @@ static int control_put(struct snd_kcontrol *kcontrol, ...@@ -95,11 +95,9 @@ static int control_put(struct snd_kcontrol *kcontrol,
int pos = kcontrol->private_value; int pos = kcontrol->private_value;
unsigned char cmd = EP1_CMD_WRITE_IO; unsigned char cmd = EP1_CMD_WRITE_IO;
switch (dev->chip.usb_id) { if (dev->chip.usb_id ==
case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_TRAKTORKONTROLX1): USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_TRAKTORKONTROLX1))
cmd = EP1_CMD_DIMM_LEDS; cmd = EP1_CMD_DIMM_LEDS;
break;
}
if (pos & CNT_INTVAL) { if (pos & CNT_INTVAL) {
dev->control_state[pos & ~CNT_INTVAL] dev->control_state[pos & ~CNT_INTVAL]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment