Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11986041ybi; Fri, 26 Jul 2019 02:55:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLxF29j2hxSWvYYj5cHR4NpUP3JM3S0/A6GPQYYHe3QUIda1cAICAiHhZllPus+n9mIhNQ X-Received: by 2002:a17:902:24e:: with SMTP id 72mr53028133plc.65.1564134938584; Fri, 26 Jul 2019 02:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564134938; cv=none; d=google.com; s=arc-20160816; b=YfacYX8jBZz9ysSyjEsgvpiqAD6hJOv9MPWkDeeamwNDBZiXtSvbACP4vt6fox71qX 9c6U6ewFoxOBKrG9dGsQWIp++AE8H7gAU/g5u/JBdcnwyTYtsyyyz+KAweVYplxG5OJC U2GsA9oGd7xuMOG5J7zwLakhPZZAg8OhAcT321zb6PuiLqhSHogiGux84/neYsgCAjPN cenHp2zuTjVJU7qbhfviXCsYS4ZE6ozOHQd07nxNqSJeN8+GV/hHLs0P6tEVC/UkSkwd MAyzLNJl+CmFurw5g+izqvrIvoRXWHFNaYjKAAw1Uzon2sBSbsH+2pyS72fAeJ5IOjUu 3w4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=PPNJXfI+VIxG04EVkt4dHoPgbzAqznoqfo7s1e/9j6s=; b=j5EHZOoPGo80xY6MSK2GSpOBxXxfDcCGtCkfHfmuMUJnO4TL05Buz6VpKS2rwP6kUk 7Fu7aZG48Nk5fH1LyGiwm4v98qiWD6kw5j3PclfPzAJAJFF+U/RMG3yEdJuPV60QfY6e ZIUlBx/hsgBMz1m6h7s+xDsS7ltDLeSmKR3ow7K4BoIdIzlzFW5KB0VKnivQC3r8DMue PLS7dE0cOQvD/aaCy4/R6npCCFuq+S2tAMEa17u0+8cQwztPK1UXtANoSWMGiTmRV0Wv +emKq5K2E8V0Mv5CObWiWduFXrKY2KDKZwMDjyY+xeWD9D+oxAJ6w1BGQl58HNe3WN1B kR8g== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci5si20149736plb.45.2019.07.26.02.55.23; Fri, 26 Jul 2019 02:55:38 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbfGZJxR (ORCPT + 99 others); Fri, 26 Jul 2019 05:53:17 -0400 Received: from mga17.intel.com ([192.55.52.151]:12461 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbfGZJxR (ORCPT ); Fri, 26 Jul 2019 05:53:17 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 02:53:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,310,1559545200"; d="scan'208";a="175549339" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.251.89.116]) ([10.251.89.116]) by orsmga006.jf.intel.com with ESMTP; 26 Jul 2019 02:53:10 -0700 Subject: Re: [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, gregkh@linuxfoundation.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Sanyog Kale References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-10-pierre-louis.bossart@linux.intel.com> From: Cezary Rojewski Message-ID: <980e074e-0736-1b17-266b-2ef0ae7d7823@intel.com> Date: Fri, 26 Jul 2019 11:53:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190725234032.21152-10-pierre-louis.bossart@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-07-26 01:40, Pierre-Louis Bossart wrote: > /* > * debugfs > */ > @@ -758,15 +774,9 @@ static int _cdns_enable_interrupt(struct sdw_cdns *cdns) > */ > int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns) > { > - int ret; > - > _cdns_enable_interrupt(cdns); > - ret = cdns_clear_bit(cdns, CDNS_MCP_CONFIG_UPDATE, > - CDNS_MCP_CONFIG_UPDATE_BIT); > - if (ret < 0) > - dev_err(cdns->dev, "Config update timedout\n"); > > - return ret; > + return 0; > } > EXPORT_SYMBOL(sdw_cdns_enable_interrupt); Rather than ignoring _cdns_enable_interrupt - despite said func always returning 0 - simply do: return _cnds_enable_interrupt(cdns) and flag caller with inline. Afterwards, one can think if such encapsulation is even required - remove existing sdw_cdns_enable_interrupt and rename _cnds_enable_interrupt?