Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1426141ybl; Tue, 13 Aug 2019 12:21:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+HXGJ9Sez/bQLbc1zYQZntq2i09Hlztw8xpoNLrvr0ZUs+PN5M61EGDGKq1dSuuOi7M4P X-Received: by 2002:a17:90a:80ca:: with SMTP id k10mr3729722pjw.59.1565724071461; Tue, 13 Aug 2019 12:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565724071; cv=none; d=google.com; s=arc-20160816; b=Ktplqq9Fzce+PJct1EeK4lUhW9FsT6jdZcCMUUJSruf0WoYSCcbxu682mgn1wxdSnK yPDSWtER+D9v+0voimvn5G32pcd1GBKrFWbPlJtqig3uiTCeC3zelnlN/4oSlt7Oovf8 Jt/qsVWyON95dmX8k1xJadv0SiRAQXQpdbtvMyXuMJZt7juutICTP9BoI16/R3M67JWI s0+ufaurcOXt+yw/vaNbWMjCzlxgI6DvrikPZvbyKZ9MfElw9tCVyw9/1wTLfJ4CTXBQ 9ZtEpi3b25JWTZgpbfXiVsEOxtCXpSdtQKcIbhyBnyOh1/Q8GgOH0oAUQHKdyAwD4rqF fLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kdNXJ8hZlcNjicps4RuD0AxoaO5Tr3w7XkkUVNHMbRc=; b=Y6ie4FqlX8g06z7E55JZAF6ZK86iTHfqSF8XuAoi07Yt2EzGHHAg88pwqLGeug+bqS CIs9Y+BQ9UrYG0gUzU3nzi1Qb52X9XViaNk4JZQRf8/B919eP+PY8kz7qVKkquvw3C0Y wEHVy1WFhGAemdjn5cwqDOxMLgAFv1YQFMEqzULrT3Wu4pv05lsOi6/+XVyhHelLfyzk XCqyIqwyk9DFpL/7s4zzL0eZXvDc7qgMo6MSicTzQkRhEuvIdkwGRICcJmXssMonJFy6 D6VNBexKHy1fGIixgK9vQcSlnNckYWUeRgjhb8Xk9PEW4Z0c1bcwz66B2p6YDY4JuSUw lvEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si7483006plc.181.2019.08.13.12.20.55; Tue, 13 Aug 2019 12:21:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726313AbfHMTT6 (ORCPT + 99 others); Tue, 13 Aug 2019 15:19:58 -0400 Received: from mail-wm1-f100.google.com ([209.85.128.100]:50299 "EHLO mail-wm1-f100.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfHMTT6 (ORCPT ); Tue, 13 Aug 2019 15:19:58 -0400 Received: by mail-wm1-f100.google.com with SMTP id v15so2518694wml.0 for ; Tue, 13 Aug 2019 12:19:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kdNXJ8hZlcNjicps4RuD0AxoaO5Tr3w7XkkUVNHMbRc=; b=RfDOaodwqKLDAHimyW56k3nV2jVa5kwsqaPy++fJMRgLpk7nZU/2dOmNNiGa9uZrV5 +BO5eRJd3CcI3f3ciZEhXBMb5e4NpfxXbzhVaO1IuNyDk5if3u0n08nKtlsDMJ/Z7Z8Y nWrp8sfx18QMjWRch9zIboNDFxBVoD0XCyyqZaBAnPVdhfv4Fkch77l+anYb0LZhJLYR z4f0SA6HQ2UJ7lFL0xERXsoakcWtkK7EVNDBfw7VPH7bFhMvlxueDJHRu7zIuV9e6WRS du8u2jHXdt64i9Y2GNh36ujQvDnJ7F560stpuF48tp6iI+Kx0P1dxex5cSEOVBSJhRXD CFlw== X-Gm-Message-State: APjAAAWcmJGR/CmQM/DH8OpjNIjHXYERcy2tYvTR7tSQsJog/Y/CZSk9 3B62erC5TMsm/NmzXirR7yAUgJ+501sDH0aauRaRY1n8fJVh7FhXK8IVdmPo6cyssw== X-Received: by 2002:a7b:cd84:: with SMTP id y4mr4601088wmj.62.1565723996474; Tue, 13 Aug 2019 12:19:56 -0700 (PDT) Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk. [2a01:7e01::f03c:91ff:fed4:a3b6]) by smtp-relay.gmail.com with ESMTPS id q2sm1473920wre.51.2019.08.13.12.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2019 12:19:56 -0700 (PDT) X-Relaying-Domain: sirena.org.uk Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hxcKq-0000z7-1L; Tue, 13 Aug 2019 19:19:56 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 659F92742B44; Tue, 13 Aug 2019 20:19:55 +0100 (BST) Date: Tue, 13 Aug 2019 20:19:55 +0100 From: Mark Brown To: Cezary Rojewski Cc: Srinivas Kandagatla , vkoul@kernel.org, bgoswami@codeaurora.org, plai@codeaurora.org, pierre-louis.bossart@linux.intel.com, robh+dt@kernel.org, devicetree@vger.kernel.org, lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org Subject: Re: [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream() Message-ID: <20190813191955.GJ5093@sirena.co.uk> References: <20190813083550.5877-1-srinivas.kandagatla@linaro.org> <20190813083550.5877-4-srinivas.kandagatla@linaro.org> <95c517ab-7c63-5d13-a03a-1db01812bb69@intel.com> <71fb21d0-3083-e590-db83-dbe489a4357e@linaro.org> <34a1a317-ac6b-bb1e-6b1b-08209f0d1923@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fmEUq8M7S0s+Fl0V" Content-Disposition: inline In-Reply-To: <34a1a317-ac6b-bb1e-6b1b-08209f0d1923@intel.com> X-Cookie: Poverty begins at home. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fmEUq8M7S0s+Fl0V Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 13, 2019 at 07:29:50PM +0200, Cezary Rojewski wrote: > On 2019-08-13 18:52, Srinivas Kandagatla wrote: > > On 13/08/2019 17:03, Cezary Rojewski wrote: > > > On 2019-08-13 10:35, Srinivas Kandagatla wrote: > > > > +=A0=A0=A0 if (dai->driver->ops->get_sdw_stream) > > > > +=A0=A0=A0=A0=A0=A0=A0 return dai->driver->ops->get_sdw_stream(dai,= direction); > > > > +=A0=A0=A0 else > > > > +=A0=A0=A0=A0=A0=A0=A0 return ERR_PTR(-ENOTSUPP); > > > Drop redundant else. > > Not all the dai drivers would implement this function, I guess else is > > not redundant here! > Eh. By that I meant dropping "else" keyword and reducing indentation for > "return ERR_PTR(-ENOTSUPP);" The above is the idiom used throughout the rest of the file. --fmEUq8M7S0s+Fl0V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1TDVoACgkQJNaLcl1U h9Bc/Qf+N4icKyyTDGlB5i1IOi6wDoQsSE1SgcAlrHFKoE0fOmNhKrhSQvskWPhS 4k6/x6JLxBu8CH9ZJAq8njVhSJ6BdfPkPM7H6Nd0tA29DaUCwHR4IDeZ9iIuAMOi pX+z060wwGKdMbQUbYMOR4P1eLL1LYlxVZx1zWjXSxsDoYQYvhg8lMkeNDc6xLFI smVcoYd0fRYsLRZtZXfSRQORdKdlYh34z7uLXkSTQpQIJtLH3Okb3U6pdOhkD1fu steqUnEf89sHiHNuXZ506xZP8iUlLK13pzSfizTyI/Zl6Qp9PrQuMtN3KW5P2ZBT kdXtRZSolgTjhJT5CgVHQUA8yneXgQ== =vuyE -----END PGP SIGNATURE----- --fmEUq8M7S0s+Fl0V--