Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1268301pxb; Sat, 15 Jan 2022 07:25:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJznsjsew5Y+GIfy6AcTT9qvk9wi8JECwu5+jxwKqfebl/P+fB5MchjF45Rks7Pi9qSE8TRo X-Received: by 2002:a50:8d05:: with SMTP id s5mr3224636eds.251.1642260320229; Sat, 15 Jan 2022 07:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642260320; cv=none; d=google.com; s=arc-20160816; b=p5643Lz3oBh2jF8+JeN5Gi9u/EYi/C3WfPzmLjUxGb8IZsTSy89n9y3SiNlNvb6Iev 3CX6g2QeE36B+cRLYMQsAT364fPFOzpKnClXWhipXu0k5RSosgcpCeIQU8ptqTH21egz t0LAYRspPCoi0IkYoa8f4TaFIFSh2wEsM4ff07MnvL+jVwFAuKOI79XwCrB9qCGki3FW c84FjEZbaHJPA6dv9vWcPisL7FBJuR2ph58IN+kovY8DIFZstfGNy0ZgK82vkdCj3Q+A +P7s2dymrGqnhvTBTfpfzmsncKIUPtSQjHwNn5LGZG88+W64OBysmwEl9jE6UyU6f0di ug/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=spHhlsb30SAtIJitKIVELJRMujHHKreWDbzq0yh7Ebs=; b=qiZx7IA5wSHiNuiIBgVX3weS4pcGjwTa17c9QITFtbDU+wP9BXf8UKLyk4gBq76tjs 4L/HUb7UufBBf4407JprIMBUQ8BTiqISOx4ddrWT2s71P2TfkDR8LxZkfcU8J4zupkam sqnFtmM6N2UQPiYqQEFoIvXIkTW6Qj93qICcC/h6yKd0RhgV+0jRmhkbTVlhxqd8BIQy 3vwaYS7gVKLU9mkmTVofIi1LMJ/eNccZMiK4Ka6izEa/OABMQJKSWHHilPE1sKdVItvW VGHdX1a4OfnWdiqhfi+9SzGgWCj62OEwzDi8ORZO6jd+ElycJM5U0OGAd6rKKK6R1yi+ czzg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si4776105edi.342.2022.01.15.07.24.55; Sat, 15 Jan 2022 07:25:20 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbiAOBX3 (ORCPT + 99 others); Fri, 14 Jan 2022 20:23:29 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:25388 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231987AbiAOBX2 (ORCPT ); Fri, 14 Jan 2022 20:23:28 -0500 X-IronPort-AV: E=Sophos;i="5.88,290,1635174000"; d="scan'208";a="107116851" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 15 Jan 2022 10:23:27 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 052E1417EAC6; Sat, 15 Jan 2022 10:23:24 +0900 (JST) From: Lad Prabhakar To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Biju Das , Pavel Machek , Cezary Rojewski , linux-renesas-soc@vger.kernel.org, Prabhakar , Lad Prabhakar , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] ASoC: sh: rz-ssi: Change return type of rz_ssi_stream_is_valid() to bool Date: Sat, 15 Jan 2022 01:23:02 +0000 Message-Id: <20220115012303.29651-5-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220115012303.29651-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20220115012303.29651-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rz_ssi_stream_is_valid() never returns an int, it returns the result of a condition which is either true or false. While at it, drop "!!" as the expression is boolean. Reported-by: Pavel Machek Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- v1->v2 * No change --- sound/soc/sh/rz-ssi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 50699e94772b..2da43eecfb3e 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -188,14 +188,14 @@ static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi) return (ssi->playback.dma_ch && (ssi->dma_rt || ssi->capture.dma_ch)); } -static int rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, - struct rz_ssi_stream *strm) +static bool rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, + struct rz_ssi_stream *strm) { unsigned long flags; - int ret; + bool ret; spin_lock_irqsave(&ssi->lock, flags); - ret = !!(strm->substream && strm->substream->runtime); + ret = strm->substream && strm->substream->runtime; spin_unlock_irqrestore(&ssi->lock, flags); return ret; -- 2.17.1