X-Git-Url: http://ftp.safe.ca/?p=safe%2Fjmp%2Flinux-2.6;a=blobdiff_plain;f=sound%2Fsoc%2Fsoc-jack.c;h=29159e1781d0edbc681a8120865323171a7a4906;hp=f8fd22cc70bcd49aed383d7b52b7673211e1cc9c;hb=3a278a0c65c924950c4744ba451a110998998044;hpb=ba0a24e7387bb56425da07ed858ada37896ed36a diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index f8fd22c..29159e1 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -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);