ALSA: line6: Drop MISSING_CASE macro
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Jan 2015 15:06:03 +0000 (16:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jan 2015 07:18:20 +0000 (08:18 +0100)
Such a debug is needed in the core code, not in each lowlevel driver.

Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.h
sound/usb/line6/pcm.c

index 31cd318369e900641af911ff0838cf21b43a6d50..8e4d946a130c54b54ea5389a020a2967aad85bbe 100644 (file)
 
 #define LINE6_CHANNEL_MASK 0x0f
 
-#define MISSING_CASE   \
-       pr_err("line6usb driver bug: missing case in %s:%d\n", \
-               __FILE__, __LINE__)
-
 #define CHECK_RETURN(x)                \
 do {                           \
        err = x;                \
index 1e77d0d9da17f08ff527b66cd5a41599e53229ea..39034c7681dafd15416f45b920b912ac7e253434 100644 (file)
@@ -488,9 +488,6 @@ int snd_line6_prepare(struct snd_pcm_substream *substream)
                        line6_unlink_wait_clear_audio_in_urbs(line6pcm);
 
                break;
-
-       default:
-               MISSING_CASE;
        }
 
        if (!test_and_set_bit(LINE6_INDEX_PREPARED, &line6pcm->flags)) {