Skip to content

Commit

Permalink
ALSA: snd-usb-caiaq: Simplify single case to an 'if'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Hills authored and Takashi Iwai committed May 29, 2010
1 parent bd4cbf6 commit 4efd7d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/usb/caiaq/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4efd7d8

Please sign in to comment.