From nobody Wed Dec 17 02:54:24 2025 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0514323A99B for ; Sun, 23 Feb 2025 20:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740342512; cv=none; b=XUuGAexOB8LoD2PwfRak7+SU1s89c+p5WdsJRYhyAuRsR8wxtF9i+NalGQINczlMGngljra6SI6LQPlRIdU5VnboSm25osXYtdYANN3guBLOyDla2PeqD3OnnWeatXAfdA5Xjz3AZR1QI4ATeMdjONm9OUs6rvDlu05wlbAzXog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740342512; c=relaxed/simple; bh=ZsyIOeqWzbiuVffyIlUl3buQFn2ktrEOdiAIjlUKOYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PyjUp7ICOLAj9csUUtBsV62YvxJWgb4jg+xta4zYnWMjD7rj2UrN8pyntKWBc282p/fBSVDyA8BSDUxYKLR4VHeyGivUb4eTI134luSlPJRrYgNMm6L85HyaAKjjnUevq6Z3ETA5NJNnEARCUwFLM9wZ1lbM2JF518RdUubVXrc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=lmnsaeOC; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="lmnsaeOC" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1740342508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+zTJ3hkU+s+DVpC9GLX4g3ZeOAZuzC6afimUtBs/oto=; b=lmnsaeOC9S8BAtthK/cic5Jq9HPDXa7zl2UuyMUWHwgbLUPq7Cs05LchrCjy2DEn+6dRch LEfwgj8nAy2sRTzEzDjvqVQRFs9KyO+6XM07cqypLKtDxuaocjVK85fEZNZS14V+kfK3l5 9r3CN++W2BpuMHOKh2M1vd1M7PQeyYo= From: Thorsten Blum To: Herve Codina , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Thorsten Blum , linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: fsl: fsl_qmc_audio: Remove unnecessary bool conversions Date: Sun, 23 Feb 2025 21:27:41 +0100 Message-ID: <20250223202741.1916-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove unnecessary bool conversions and simplify the code. Signed-off-by: Thorsten Blum Acked-by: Herve Codina --- sound/soc/fsl/fsl_qmc_audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_qmc_audio.c b/sound/soc/fsl/fsl_qmc_audio.c index e257b8adafe0..b2979290c973 100644 --- a/sound/soc/fsl/fsl_qmc_audio.c +++ b/sound/soc/fsl/fsl_qmc_audio.c @@ -892,7 +892,7 @@ static int qmc_audio_dai_parse(struct qmc_audio *qmc_au= dio, struct device_node * qmc_soc_dai_driver->playback.channels_max =3D count > 1 ? count : nb_tx_= ts; } qmc_soc_dai_driver->playback.formats =3D qmc_audio_formats(nb_tx_ts, - count > 1 ? true : false); + count > 1); =20 qmc_soc_dai_driver->capture.channels_min =3D 0; qmc_soc_dai_driver->capture.channels_max =3D 0; @@ -901,7 +901,7 @@ static int qmc_audio_dai_parse(struct qmc_audio *qmc_au= dio, struct device_node * qmc_soc_dai_driver->capture.channels_max =3D count > 1 ? count : nb_rx_t= s; } qmc_soc_dai_driver->capture.formats =3D qmc_audio_formats(nb_rx_ts, - count > 1 ? true : false); + count > 1); =20 qmc_soc_dai_driver->playback.rates =3D snd_pcm_rate_to_rate_bit(tx_fs_rat= e); qmc_soc_dai_driver->playback.rate_min =3D tx_fs_rate; --=20 2.48.1