ALSA: snd-usb-caiaq: Simplify single case to an 'if'
authorMark Hills <mark@pogo.org.uk>
Sat, 29 May 2010 15:53:24 +0000 (16:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 29 May 2010 19:48:47 +0000 (21:48 +0200)
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>
sound/usb/caiaq/control.c

index 70c3866bb62765da2d079547908a531497d63ab9..91c804cd278278c639f428ab59d963d6d6804105 100644 (file)
@@ -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]