ASoC: Allow reporting of NULL jacks
[safe/jmp/linux-2.6] / sound / soc / soc-jack.c
index f8fd22c..29159e1 100644 (file)
@@ -64,10 +64,9 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
        int enable;
        int oldstatus;
 
-       if (!jack) {
-               WARN_ON_ONCE(!jack);
+       if (!jack)
                return;
-       }
+
        codec = jack->card->codec;
 
        mutex_lock(&codec->mutex);