summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 15:06:03 (GMT)
committerTakashi Iwai <tiwai@suse.de>2015-01-20 07:18:20 (GMT)
commit10e3a023c97e67975812027c1a96db874be2e78d (patch)
treef4a638baad0a9d364dd458051de1278957bdca64 /sound
parent2cd53fa9d38b98ea5ae4268e021c4f4cd68227a5 (diff)
downloadlinux-10e3a023c97e67975812027c1a96db874be2e78d.tar.xz
ALSA: line6: Drop MISSING_CASE macro
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/line6/driver.h4
-rw-r--r--sound/usb/line6/pcm.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h
index 31cd318..8e4d946 100644
--- a/sound/usb/line6/driver.h
+++ b/sound/usb/line6/driver.h
@@ -48,10 +48,6 @@
#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; \
diff --git a/sound/usb/line6/pcm.c b/sound/usb/line6/pcm.c
index 1e77d0d..39034c7 100644
--- a/sound/usb/line6/pcm.c
+++ b/sound/usb/line6/pcm.c
@@ -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)) {