Skip to content

Commit

Permalink
ASoC: Allow reporting of NULL jacks
Browse files Browse the repository at this point in the history
Follow the core jack implementation and allow reporting on the status
of NULL jacks, avoiding the need to check in detection implementations.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mark Brown committed Apr 23, 2010
1 parent ba0a24e commit 3a278a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a278a0

Please sign in to comment.