Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp693164pxb; Tue, 5 Apr 2022 19:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQpk+Do2g11+uF8pIh6MVrtmtI7n9/UqX10ldTsKtd3KyWrNhl3pIdBErqXGJtgzDp5mJq X-Received: by 2002:a17:90b:2246:b0:1c6:5781:7193 with SMTP id hk6-20020a17090b224600b001c657817193mr7496409pjb.48.1649210572632; Tue, 05 Apr 2022 19:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649210572; cv=none; d=google.com; s=arc-20160816; b=ffyCyB9VhL0T2AocMNnXwCYGQv0nEHFC3OAfcotr2MIj1hWLl6H5+vXY4uicYGJjV4 X6+S5aiaZeumAuEc3Rijv02wsDLpDDIk19I9kNXBDUSb8OhBTMiLJkM3r2UJ3hLDzXP4 Lzr9J7pGvFLqUoo66gZhxlaZRaTnpnDaz0FGWwFEDjleJD1z839kISvAVqHfiJ/fJRSn 8MBrsQBx0nlAhuSZ7iwz1+CSXcKPJeYzZNiVx7Zo9LHSTdf7DvsmE4wlSz3ECrF47mFM 0UR3cwDjQaT04Kzs3UyH5DSmOabAInXdGVMnVSGVvh/ZY5dO0benmaLY51IBd8K5DTMu nD9A== 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=1af4ANhrlFXtPEDOdDa7EraJ4tckeXsqmYULRoADuaM=; b=MgI4htMw3bDImixDVFfkkzu5ADFWbm7Rl/Cv/TdC5B57sexsBHJY5ieo3YenUa8FpI /f9B8VbSwy0M2X8WWQ4V+HARsCQec0D3KJXvt/IQKmSTN4a/ebHD0xUfEWAQQDh12HRt DSQ4Yjamgrc7mIbJ9ZAsYkn3NlRSvl8g1ooOtTrmGsD2SGPrZyVIfJ6CSS/SzgZJY8eq KUiTWF+FwdJGKhM/OEthN8ht8htweM+tJ+5/13xjlgmYqVVinyR3Jg8iH/5JFotJ2d8n 6fTN0lHX2Kv3TScCfT6mOSBG29ubN19V1s9d0LZrEHODC/ozXjX3D7lJl5LGeSvxYUQY H3zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DDntSgq+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me2-20020a17090b17c200b001bd3fc48d31si3900276pjb.43.2022.04.05.19.02.36; Tue, 05 Apr 2022 19:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DDntSgq+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1353136AbiDELN6 (ORCPT + 99 others); Tue, 5 Apr 2022 07:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238205AbiDEIaY (ORCPT ); Tue, 5 Apr 2022 04:30:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F43D22BF3; Tue, 5 Apr 2022 01:21:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E75ABB81BAF; Tue, 5 Apr 2022 08:21:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FF29C385A0; Tue, 5 Apr 2022 08:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146913; bh=s0wj/LBQJuAxdPrtimr7Muy8fa/7WRNCVbi4aDUt0iY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DDntSgq+LWS9K4f3iLPv0XOw+lDiKIORPRdnm5qTrO7EgN9/S5tpmOTAf8Xquosae bTPw3i+wmUxpcsvszfOIPmNX/oLGNUk01kmJka8bTUADoOKb7a6Zqp2i1e/lLia+FL xjPskvROawyWFADkWfWrUNgPJWtXgHgs7+q0JFe0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ranjani Sridharan , =?UTF-8?q?P=C3=A9ter=20Ujfalusi?= , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 5.17 0935/1126] ASoC: SOF: debug: clarify operator precedence Date: Tue, 5 Apr 2022 09:28:02 +0200 Message-Id: <20220405070434.958826957@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre-Louis Bossart [ Upstream commit 9188812539d1d9a13dac690c95ec657259859ba4 ] cppcheck warning: for '&' and '?'. [clarifyCalculation] char *level = flags & SOF_DBG_DUMP_OPTIONAL ? KERN_DEBUG : KERN_ERR; ^ sound/soc/sof/debug.c:398:46: style: Clarify calculation precedence Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20220304205733.62233-10-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c index 6d6757075f7c..e755c0c5f86c 100644 --- a/sound/soc/sof/debug.c +++ b/sound/soc/sof/debug.c @@ -960,7 +960,7 @@ static void snd_sof_dbg_print_fw_state(struct snd_sof_dev *sdev, const char *lev void snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, const char *msg, u32 flags) { - char *level = flags & SOF_DBG_DUMP_OPTIONAL ? KERN_DEBUG : KERN_ERR; + char *level = (flags & SOF_DBG_DUMP_OPTIONAL) ? KERN_DEBUG : KERN_ERR; bool print_all = sof_debug_check_flag(SOF_DBG_PRINT_ALL_DUMPS); if (flags & SOF_DBG_DUMP_OPTIONAL && !print_all) -- 2.34.1