From a0431f89fe47da8055ba5de852caa0c621d1d646 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 26 Feb 2008 13:16:08 +0100 Subject: [PATCH] --- yaml --- r: 92075 b: refs/heads/master c: 964a788e0ba64aa4ce2e6488718f3ee28cc2e61e h: refs/heads/master i: 92073: d386ed0098d9d54ce3bdfbacc427d331f5b0f4fb 92071: 4eb1ee7733f4e5d783fc389c8a415b034cfe988f v: v3 --- [refs] | 2 +- trunk/sound/soc/soc-dapm.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8391c0b86d45..30e0839a27bf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b26451c059e741ec5e3389f7758627cb094b3766 +refs/heads/master: 964a788e0ba64aa4ce2e6488718f3ee28cc2e61e diff --git a/trunk/sound/soc/soc-dapm.c b/trunk/sound/soc/soc-dapm.c index 620d7ea3c15f..abac6847ecad 100644 --- a/trunk/sound/soc/soc-dapm.c +++ b/trunk/sound/soc/soc-dapm.c @@ -1334,10 +1334,11 @@ int snd_soc_dapm_set_endpoint(struct snd_soc_codec *codec, list_for_each_entry(w, &codec->dapm_widgets, list) { if (!strcmp(w->name, endpoint)) { w->connected = status; + return 0; } } - return 0; + return -ENODEV; } EXPORT_SYMBOL_GPL(snd_soc_dapm_set_endpoint);