From: Takashi Iwai Subject: [PATCH 2/9] ASoC: ab8500: Add missing return in ab8500_codec_set_dai_fmt() Date: Wed, 30 Oct 2013 08:35:00 +0100 Message-ID: <1383118507-21503-3-git-send-email-tiwai@suse.de> References: <1383118507-21503-1-git-send-email-tiwai@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 67E67264F74 for ; Wed, 30 Oct 2013 08:32:34 +0100 (CET) In-Reply-To: <1383118507-21503-1-git-send-email-tiwai@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: alsa-devel@alsa-project.org, Liam Girdwood List-Id: alsa-devel@alsa-project.org Otherwise you'll see unrelated error message, too. Spotted by coverity CID 715173. Signed-off-by: Takashi Iwai --- sound/soc/codecs/ab8500-codec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/ab8500-codec.c b/sound/soc/codecs/ab8500-codec.c index 6e3dda1ca734..0693faf7effb 100644 --- a/sound/soc/codecs/ab8500-codec.c +++ b/sound/soc/codecs/ab8500-codec.c @@ -2132,6 +2132,7 @@ static int ab8500_codec_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) dev_err(dai->codec->dev, "%s: ERROR: The device is either a master or a slave.\n", __func__); + return -EINVAL; default: dev_err(dai->codec->dev, "%s: ERROR: Unsupporter master mask 0x%x\n", -- 1.8.4.1