diff mbox

[12/17] ALSA: line6: Drop MISSING_CASE macro

Message ID 1421682891-11594-13-git-send-email-tiwai@suse.de (mailing list archive)
State Accepted
Commit 10e3a023c97e67975812027c1a96db874be2e78d
Headers show

Commit Message

Takashi Iwai Jan. 19, 2015, 3:54 p.m. UTC
Such a debug is needed in the core code, not in each lowlevel driver.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/usb/line6/driver.h | 4 ----
 sound/usb/line6/pcm.c    | 3 ---
 2 files changed, 7 deletions(-)
diff mbox

Patch

diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h
index 31cd318369e9..8e4d946a130c 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 1e77d0d9da17..39034c7681da 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)) {