Received: by 10.192.165.148 with SMTP id m20csp498041imm; Fri, 20 Apr 2018 10:06:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hkAvBYQaypKf3JZokJRzjHaNZlBOUsrTdaz2b8VwxJFNMLGWyq3BMFuOnSkJbYTAE2Waz X-Received: by 10.99.62.201 with SMTP id l192mr9124901pga.318.1524243980462; Fri, 20 Apr 2018 10:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524243980; cv=none; d=google.com; s=arc-20160816; b=UGDMMmnybKHu6BCdM2/BlUoNToHj799A2L68FG7GcF7ky/gCPAlsPm4iK0QrOrWgvs IxVruFNEldHUHJBN6olse3q8LMgV6Q7crHeU8njXIW84v0biZSBnuof5X6b/g5OWWhnr udC312kj0x+eApseZqCUjyhz7xZpHKo97NEWivqzfDaGuLdlkLrCuAEPjNG/SP6QGuw5 G9G3s1XqE2abopbm3KSDGR01gqS5U+I8qjcreqaAkr8CTOdztcaYjM3L6MN0HVENXkz/ JWPS1RSe7iNcRQGhKCW0ub23l7IDeUXYeDHbMToTcunLvWIX5BFN6WvUifQ/JEyCZVys 7xiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=UTdY18KGvAl0nrnXtcCPSkKnw0P766aKy4zlSWdklz8=; b=z4gigQQ2fxouZuDVgFxlU0NTpNjE5Lnjf2ZLZHl2VyrKHsFl81EcfZWw2JynK7L1j4 Tc+sARBf5pkXiKmS91UWOlZhxwBC7x/s0VcRVTDXC+nvJ7TOt3vVzVZciR3aG/JLE9Ay /hqILQDBN0CQXYszlqbF1buTHJ+2AhhbRnT8RHAH0rM7jCwgKYodv2GWmuvuzJFyvTIv CdAsPK9Ey5JEv25OjLAD7XqyK3TAiz9/SeQj0UN2wHsZ+xZyASv2oa2WFdbWWKuoZjYA pRZFgYikUtBFNhzybKNvK1TCBPh+UPhR2Cqx2zK45Kq4d1IIZ3tAzzsSGrPUFF98XTJl IP2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=OMviaXzs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 131si5594640pfa.246.2018.04.20.10.06.05; Fri, 20 Apr 2018 10:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=OMviaXzs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753547AbeDTREf (ORCPT + 99 others); Fri, 20 Apr 2018 13:04:35 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:48092 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753530AbeDTREc (ORCPT ); Fri, 20 Apr 2018 13:04:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=UTdY18KGvAl0nrnXtcCPSkKnw0P766aKy4zlSWdklz8=; b=OMviaXzsobsk E+eLpY6i2dBhnlCmnbM0PUc0xZuGlfpujg1rNRRpV0JJgWEgol+MoDitQ1JIzeA3sfrD9k0HdWmDr tNN8574imaUtMLtrJPvYNsoFOlHtCQCWoD+wSfGmA+MlJq7DSHOCTBEB5vt9gtgu8wdrk9ndfDqC3 DWdy8=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9ZSM-0006BB-Vj; Fri, 20 Apr 2018 17:04:19 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1f9ZSM-0004Ws-HJ; Fri, 20 Apr 2018 18:04:18 +0100 From: Mark Brown To: Colin Ian King Cc: Mark Brown , Bard Liao , Oder Chiou , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: rt5668: fix incorrect 'and' operator" to the asoc tree In-Reply-To: <20180419143431.13173-1-colin.king@canonical.com> Message-Id: Date: Fri, 20 Apr 2018 18:04:18 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rt5668: fix incorrect 'and' operator has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 4bb3f73a2da740e38f2e418bd0c468826046687a Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Thu, 19 Apr 2018 15:34:31 +0100 Subject: [PATCH] ASoC: rt5668: fix incorrect 'and' operator Currently logical and is being used instead of bitwise and. Fix this. Detected by CoverityScan, CID#1468008 ("Logical vs bitwise operator") Fixes: d59fb2856223 ("ASoC: rt5668: add rt5668B codec driver") Signed-off-by: Colin Ian King Signed-off-by: Mark Brown --- sound/soc/codecs/rt5668.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c index 52a343f96eb2..3c19d03f2446 100644 --- a/sound/soc/codecs/rt5668.c +++ b/sound/soc/codecs/rt5668.c @@ -1194,7 +1194,7 @@ static int set_filter_clk(struct snd_soc_dapm_widget *w, int ref, val, reg, idx = -EINVAL; static const int div[] = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48}; - val = snd_soc_component_read32(component, RT5668_GPIO_CTRL_1) && + val = snd_soc_component_read32(component, RT5668_GPIO_CTRL_1) & RT5668_GP4_PIN_MASK; if (w->shift == RT5668_PWR_ADC_S1F_BIT && val == RT5668_GP4_PIN_ADCDAT2) -- 2.17.0