Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1268045pxb; Sat, 15 Jan 2022 07:24:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKBduog3DEgPilrhfz72yKbDsS9nnTdNh4GvQ9iD5I2a/5sLJ8cK4efxzy8p0vi9VL5Z7p X-Received: by 2002:a05:6402:2752:: with SMTP id z18mr13377471edd.108.1642260295910; Sat, 15 Jan 2022 07:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642260295; cv=none; d=google.com; s=arc-20160816; b=GhTfZjJqURIvSlV2g184hg3GsT4dd6oQVKw25upEnUiDYPcYZpHwdCFcpq2jXaZw1k Zx8rzNCOUSYKzqzEv+Jf0eq9sPgwOVWpJSHAQUBPX7GW6mhFEDPYU1GHxA3a/D1jQAyT FGnpqeEyjQdnqrsfzUw5bVaMW38anRl1/3oEU+RS3yKUaCpxSJf0DyaESgNsqXw7ZkMY 1MNRXOTKb9XiFxtDYhxbUx0CkdgwgOc+c5r9d/6aAwnieEWdwhLU8oGszUdREwALNAdQ sFTSqsupYP6N7lgn2QDDtNJ7emc2mjAYeFJT0mzdWPB+N+5cVmDyz2jocpKpMibEUUKJ zEXw== 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=7KL62pl32FEeEPLyLtfiXrvUxeeN+rkUB09ihZaIgZQ=; b=yxRr1UwEIYy4K1Myq0stZVLduk2qENIl9sakhxc+TQ8O3PA5BSH9a5IBOjFAsKcOHX azMu/NetsVrmIYT10+0WTBf5OWoSgk24HuxaxBzQn+b74Ait4KRhWf4joq+ufS5I8HWt u1T9dJOAg6HkkDePDTq3MRs0YhIzHyJ+Tw10Mu7c+anZJAoXi62g7G6USw1n9aPUL11/ KOqh9zIS0okGsP6avYAJ6K9Uheqc6OO6td2UcOJ8jIrJx+oMgVOOkkl4Rn4iCNkCGWs1 Wmv3QoWn9zQGwt0dMGk846KIlfOYVVATeNKWYLSlpxrIMpo8H8tBeBiyFAPUD1hua+d4 dLjQ== 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 r6si4594174edp.0.2022.01.15.07.24.30; Sat, 15 Jan 2022 07:24:55 -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 S231952AbiAOBXZ (ORCPT + 99 others); Fri, 14 Jan 2022 20:23:25 -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 S231962AbiAOBXY (ORCPT ); Fri, 14 Jan 2022 20:23:24 -0500 X-IronPort-AV: E=Sophos;i="5.88,290,1635174000"; d="scan'208";a="107116846" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 15 Jan 2022 10:23:24 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 9B5B5417EAC4; Sat, 15 Jan 2022 10:23:21 +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 3/5] ASoC: sh: rz-ssi: Drop ssi parameter from rz_ssi_stream_init() Date: Sat, 15 Jan 2022 01:23:01 +0000 Message-Id: <20220115012303.29651-4-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 ssi parameter is unused in rz_ssi_stream_init() so just drop it. While at it, change the return type of rz_ssi_stream_init() to void instead of int. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- v1->v2 * No change --- sound/soc/sh/rz-ssi.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 89428945d48b..50699e94772b 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -201,9 +201,8 @@ static int rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, return ret; } -static int rz_ssi_stream_init(struct rz_ssi_priv *ssi, - struct rz_ssi_stream *strm, - struct snd_pcm_substream *substream) +static void rz_ssi_stream_init(struct rz_ssi_stream *strm, + struct snd_pcm_substream *substream) { struct snd_pcm_runtime *runtime = substream->runtime; @@ -219,8 +218,6 @@ static int rz_ssi_stream_init(struct rz_ssi_priv *ssi, /* fifo init */ strm->fifo_sample_size = SSI_FIFO_DEPTH; - - return 0; } static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi, @@ -723,9 +720,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, rz_ssi_reg_mask_setl(ssi, SSIFCR, SSIFCR_SSIRST, 0); udelay(5); - ret = rz_ssi_stream_init(ssi, strm, substream); - if (ret) - goto done; + rz_ssi_stream_init(strm, substream); if (ssi->dma_rt) { bool is_playback; -- 2.17.1