Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2063815pxb; Mon, 12 Apr 2021 13:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMsifoSLMGS91+bL2kttNs4BADBKkVclySKkEkg3qaDIH0ITO9cTQcOtnl2XZW3QhxJPaA X-Received: by 2002:a17:90a:8b97:: with SMTP id z23mr917409pjn.131.1618258923208; Mon, 12 Apr 2021 13:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618258923; cv=none; d=google.com; s=arc-20160816; b=tr1aiOZ+Sh5vaMQKNwI8pbqR/DHZ+ZxdENF4dvd/5Pa8LEtlAhIhbVNVB9BXI6QvdI k79Bh7bfjWJCoMv6x5VFEkAzVvw26hdIvWIGFSS/x/DEF8b2xT14CwtO+JY8WMRlLDXT y7Eu3teuh8nUmwmzRDBBqkbs5Q7Yy+EqkETsYi+EYkw4PzSAdbfdIqTb+i0qKa4W/XdS IvYxOgKP23iyDsg8UPsa4Z7GbTHRpzXt20mDOiVSnCj1TiHfyXpz5y1S9zQQYvWhsQiZ PReNjO2T5Jnk5udfCqrEBLnFmKSUC5c0HYBGu71xqEG8QJrbb4O09IlAi+ReK+Ycag6h NuGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=e5vKwgIqI7gKhQWGezHOilStMQ0N7Vj5CnNCi73plZU=; b=e1c4RYfAeJ47uawZQqYbrNY5Vij5oxRDCzwJjnwm5q98RMfaAFybamgNyBL1XibDEx 64J2rsjIN09feysL4Ctvplrv0zHqGYfE4WPx5Q7+SVtB/yUwgpVsLZcutYUPYfCCGd0E qbh4jVYajvMcgmsNAsC6tEPFIxUVs5mifpfA3jpKm0oR68PXTCKHutsfWs+TaUe1VcWa 9d2WI1gI8YSrOPnWPLj/ER8XofZ1HqKnwdWCJ/ITjOOLPd/3sIbbz5kQv6t53JzSBbdJ yq5E/W2fnLnVSiaHFMaEF0bSP9DqOnCyrw3I7ckWwNauqGaiyVCS5zNEdYPdS3w80qMY LI7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y9qfyhb6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si10952099pld.162.2021.04.12.13.21.51; Mon, 12 Apr 2021 13:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y9qfyhb6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238503AbhDLI4Z (ORCPT + 99 others); Mon, 12 Apr 2021 04:56:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:40700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238478AbhDLIt4 (ORCPT ); Mon, 12 Apr 2021 04:49:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB1B66109E; Mon, 12 Apr 2021 08:49:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217352; bh=+spV6gVCOM3871GDKFM07AW5rRDU50KMJoiElwIWpiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y9qfyhb6VEMxv/z6FdFhn6//yUbJULUbHFqsStarBfBEhv2/+CvKGD5Qz0G4kgN4K qxBavGPy2MQhrDRArl+WL3shO3Fp7gFM9GS0l0igGz0yNJPH6peLXIArpaGtQmVSmS HAwr6V1LjbpR+zHDPu27DgQPZfe71QNH3WbBZ2gA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Payal Kshirsagar , Pierre-Louis Bossart , Ranjani Sridharan , Guennadi Liakhovetski , Kai Vehmanen , Mark Brown , Sasha Levin Subject: [PATCH 5.4 049/111] ASoC: SOF: Intel: hda: remove unnecessary parentheses Date: Mon, 12 Apr 2021 10:40:27 +0200 Message-Id: <20210412084005.892418133@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084004.200986670@linuxfoundation.org> References: <20210412084004.200986670@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Payal Kshirsagar [ Upstream commit 805a23de2657c10c2ca96588a309a42df947bb36 ] Remove unnecessary parentheses around the right hand side of an assignment and align the code. Signed-off-by: Payal Kshirsagar Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski Reviewed-by: Kai Vehmanen Link: https://lore.kernel.org/r/20200409184853.15896-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/intel/hda-dsp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/sof/intel/hda-dsp.c b/sound/soc/sof/intel/hda-dsp.c index 94b093b370e2..d4c7160717c7 100644 --- a/sound/soc/sof/intel/hda-dsp.c +++ b/sound/soc/sof/intel/hda-dsp.c @@ -192,10 +192,10 @@ bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_ADSPCS); - is_enable = ((val & HDA_DSP_ADSPCS_CPA_MASK(core_mask)) && - (val & HDA_DSP_ADSPCS_SPA_MASK(core_mask)) && - !(val & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) && - !(val & HDA_DSP_ADSPCS_CSTALL_MASK(core_mask))); + is_enable = (val & HDA_DSP_ADSPCS_CPA_MASK(core_mask)) && + (val & HDA_DSP_ADSPCS_SPA_MASK(core_mask)) && + !(val & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) && + !(val & HDA_DSP_ADSPCS_CSTALL_MASK(core_mask)); dev_dbg(sdev->dev, "DSP core(s) enabled? %d : core_mask %x\n", is_enable, core_mask); -- 2.30.2