summaryrefslogtreecommitdiffstats
path: root/sound/usb/caiaq
diff options
context:
space:
mode:
authorMark Hills <mark@pogo.org.uk>2010-05-29 16:53:24 +0100
committerTakashi Iwai <tiwai@suse.de>2010-05-29 21:48:47 +0200
commit4efd7d8f67ac5ff80db06b77c46aca6e0d9f878b (patch)
tree23e6c2142a27725c740f87c1face52012cd4eea5 /sound/usb/caiaq
parentbd4cbf6c7689d35d5d1248369d2c350f4711ca0a (diff)
ALSA: snd-usb-caiaq: Simplify single case to an 'if'
After removing code, only one case remains. So use an 'if' instead. Acked-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Mark Hills <mark@pogo.org.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/caiaq')
-rw-r--r--sound/usb/caiaq/control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/usb/caiaq/control.c b/sound/usb/caiaq/control.c
index 70c3866bb62..91c804cd278 100644
--- a/sound/usb/caiaq/control.c
+++ b/sound/usb/caiaq/control.c
@@ -95,11 +95,9 @@ static int control_put(struct snd_kcontrol *kcontrol,
int pos = kcontrol->private_value;
unsigned char cmd = EP1_CMD_WRITE_IO;
- switch (dev->chip.usb_id) {
- case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_TRAKTORKONTROLX1):
+ if (dev->chip.usb_id ==
+ USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_TRAKTORKONTROLX1))
cmd = EP1_CMD_DIMM_LEDS;
- break;
- }
if (pos & CNT_INTVAL) {
dev->control_state[pos & ~CNT_INTVAL]