Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp898650rwd; Thu, 1 Jun 2023 07:59:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TTfny+I4lynz8kP+simbGwxUIFmPIG8fyy5DiQiRc5ZwbOWCfT8vkHlosqQaNjGOf4hZY X-Received: by 2002:a05:6358:3404:b0:11b:3e4d:a203 with SMTP id h4-20020a056358340400b0011b3e4da203mr6800402rwd.23.1685631584249; Thu, 01 Jun 2023 07:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685631584; cv=none; d=google.com; s=arc-20160816; b=eYWqSSGtowtwyioksFjnfO4p4PsVkShMJIvMhH784U2p5ffUNWi5TvYs3IL6CW/H9g ADq72gXN4vCLv5pMw72uN1N21MEv6BP4++V//8JgoRpmY1YboCUoFQ/KUG0OiaPB+5Nk 44W/L1MysNkAnn8fvBOQ5pgGcHeZlYliQpzBVn1zHAxWrp1D0rca5Mw37xwQwsXUjOEO mDBHSgD1m2VmjvEiAIVzwpIHE1OJeJYZngKix4pe+BM68RtFTJyUP4A5ociiC8CHXW+Z aKbHeS2H9WHcSv8xUxoJ9u1OIMXX3bnNIg+kGw9MrzECemPxUh4w8ZX64kCjbICd7utc nexw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fG4eIp5PTZUdy5WW7q+No4hMGZ/7ZgLBDcYqJEEiuCc=; b=bAvFfNjhp/Pmd6P/e9LZ9OdbcWLSKtu27sd7LrXfWzEYGuS/lnq23o3Yfsuc9vOql+ bS7ZeGIb1ulrGtjuRoFrIymtVpMFull684b4E4Xh8dKWlen1PexkDpYNoTc3FudQfqFK BCD+BAzxfHUBmif2q+ZUCnMyvCpuKdmJMMSVtYqP5lkjnQwDYqlLxFA40zYFgUBrQil9 4Duxr5t4iWy8IJC7uZZ1pUZM5Yeb35Q/zfM7VzF1tSStE1pPFP7LZoOig1ykcR80uC+4 +AB70crvaB5A5U+Y1LF80Exct1/ulD2IqPgyujzdPL8/wo3eaweOTzdyjzJx12riehMw v7Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=S2trG8t3; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b005346b80d198si67802pgi.517.2023.06.01.07.59.32; Thu, 01 Jun 2023 07:59:44 -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=@intel.com header.s=Intel header.b=S2trG8t3; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbjFAOs3 (ORCPT + 99 others); Thu, 1 Jun 2023 10:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233840AbjFAOs2 (ORCPT ); Thu, 1 Jun 2023 10:48:28 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E6BE132 for ; Thu, 1 Jun 2023 07:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685630906; x=1717166906; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=ZjMPPnkOsUyvdtnWla3A8bZAJ3Ehv3zALg3Ikocts4A=; b=S2trG8t3Ihi4MG97jXsY5HBhTojUYENpQojaHuG69toO88PlF2HAj5dm 2R2RJm3Tc/Cha9se8ZwEpM2MsaP8PWHSeBO4z0NZXvrDNPlX8+gxoWjux 3cnzEyeRm68BT/kYXu015h0mUo91R+MBxzbn7fQwVJb43Xv0u+PmEMpSK GkcNy3p6Do4vvs1jqG3AXbeJpA2SbF57FspFxODtnczJJ7YPd6zo+BnhT tP7wX9YFFAWrxW5Xn/9rDh1RYjQVvcmgcRTr7WgUXE2VU2RUw83m1961t ishhW7SyHaXtMZ7QjsS+KIxEkJKxM+eLzVwQYzpMfxEWyy/B5kLyzFz/3 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="358871436" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="358871436" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 07:48:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="881634867" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="881634867" Received: from gjayacha-mobl1.amr.corp.intel.com (HELO [10.209.41.36]) ([10.209.41.36]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 07:48:04 -0700 Message-ID: <18ec3299-56a6-2156-c856-55754fd8fa54@linux.intel.com> Date: Thu, 1 Jun 2023 09:08:29 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH] ASoC: cs35l56: Remove NULL check from cs35l56_sdw_dai_set_stream() To: Richard Fitzgerald , broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com References: <20230601124907.3128170-1-rf@opensource.cirrus.com> Content-Language: en-US From: Pierre-Louis Bossart In-Reply-To: <20230601124907.3128170-1-rf@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 On 6/1/23 07:49, Richard Fitzgerald wrote: > The dma pointer must be set to the passed stream pointer, even > if that pointer is NULL. > > Fixes: e49611252900 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56") > Signed-off-by: Richard Fitzgerald Yep, good catch, this is what we have for other codecs. Reviewed-by: Pierre-Louis Bossart > --- > sound/soc/codecs/cs35l56.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c > index 3c07bd1e959e..c03f9d3c9a13 100644 > --- a/sound/soc/codecs/cs35l56.c > +++ b/sound/soc/codecs/cs35l56.c > @@ -704,9 +704,6 @@ static int cs35l56_sdw_dai_hw_free(struct snd_pcm_substream *substream, > static int cs35l56_sdw_dai_set_stream(struct snd_soc_dai *dai, > void *sdw_stream, int direction) > { > - if (!sdw_stream) > - return 0; > - > snd_soc_dai_dma_data_set(dai, direction, sdw_stream); > > return 0;