Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1101604rwd; Thu, 1 Jun 2023 10:26:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RZbTpyFrunC+Pga7Qi3N7Mwd78RNNcm4n7sbfJZA2RxDjiDiJkq7nbZn3+0A5IKQj5Zlb X-Received: by 2002:a17:90b:4f43:b0:250:af6d:bd7b with SMTP id pj3-20020a17090b4f4300b00250af6dbd7bmr2387281pjb.24.1685640389409; Thu, 01 Jun 2023 10:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685640389; cv=none; d=google.com; s=arc-20160816; b=jLMwJTgtS3wvQljuxMwo3VzZpQGLrLurrxW0EfutT5xAfGV0Je0VLp3w+4AYbT/Yc5 VFOHg0j98Yi1V2kwNlvkA1SlMoOTzheLs8ie7s4xHA3otTuKeto3XFepR0SzrEk4V8oE io9SuBOVsmisfltfxZxWHjp8uW5Ld/9+lVOZpSrqrUeVgPLKxQlL0jC/KIlF5WbkvT0U OL7y+D3hcP7/ApiSCXFozNEs64fAGj4y1hsfWUGkmekUy3ubgE9Hea7+R71tansgauHN PqW7RFoeNT4Y+TwhG6aIFUERdazE0PrkhGTZUY3Tti9Q1wBLXIM0S2Y05dqxITEMffbA /hVw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DSH3ruEHXW8BJJpRYshCPQw6l/zTibzhGKHB3jhNYPI=; b=nLMlDyFN26l9USXjmRsoqBVuP1sjAeLbsVdletbDO9Y83gon972nnPAAe50W4wFf1C RhLPkmNlj0L71aBtmmh//BQJKm0YcSezfL7Zs/51oSMd8XE5qWC8ubIdXnRBKOs0HwyV 5q49eJV4trZV8HfUx+wu4+wx4bTkVGJVs9qOqyFL7E5v/KO3fiDImiO9ejFkGNnzUQh1 pyGFqO8y4k+HOSPyddZfK/P5gvjYkbGV+zzvgK1pM+1p3gtMklb7DyqZgkoGN/t7dydp 3792kztsYb0crt/vTYEVxNLVDbaKb+DP/39anelC/M5iyUtRjTC05oIoyez+8G6WRKr4 NQcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FxxQv6iW; 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 bv24-20020a17090af19800b002560ab7de6bsi1409232pjb.97.2023.06.01.10.26.15; Thu, 01 Jun 2023 10:26:29 -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=FxxQv6iW; 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 S232164AbjFAQwe (ORCPT + 99 others); Thu, 1 Jun 2023 12:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjFAQw0 (ORCPT ); Thu, 1 Jun 2023 12:52:26 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 113411AB for ; Thu, 1 Jun 2023 09:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685638321; x=1717174321; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=pm4VUQyubQxYWLZEuh6qnK28OPDj9UxOI+MeZtmOfaI=; b=FxxQv6iWb+LfUv3Lj7pouwAPRgAh8X9n82AktTBH5ZzoufI3S2Ok2Z+5 kpnvI1J/3kkBuHkVzun4NlO/MZ85ThwpFL+rme0vsuzXPY1FqATeMw67Z 8YJjdsJ6jM0z++R8h/8ElaCQYLrhM2yEbTAUiQMA3fw4FDcpdc4Etv5iB fHBkCOsdfYRLzX+fTvbJHU4z3dliWfQzbDaKe1AOjpYfcBTQBBte2ZyFl 0+qr8yc5/nsDF4F6yKPoQIxHYptM4uUtgdNiu3Vvvek8/NDWI7hQSG68J OMGGEm8McpnVSRB9PaqXiLyo/425nWdAB/LAzZ1ZYuuiEH+x+BwYTOrZg w==; X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="421426880" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="421426880" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 09:51:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10728"; a="777283282" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="777283282" Received: from rcelisco-mobl.amr.corp.intel.com (HELO [10.212.207.82]) ([10.212.207.82]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 09:51:56 -0700 Message-ID: Date: Thu, 1 Jun 2023 11:39:38 -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 2/4] soundwire: bandwidth allocation: Remove pointless variable Content-Language: en-US To: Charles Keepax , vkoul@kernel.org Cc: yung-chuan.liao@linux.intel.com, sanyog.r.kale@intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com References: <20230601161622.1808135-1-ckeepax@opensource.cirrus.com> <20230601161622.1808135-2-ckeepax@opensource.cirrus.com> From: Pierre-Louis Bossart In-Reply-To: <20230601161622.1808135-2-ckeepax@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 11:16, Charles Keepax wrote: > The block_offset variable in _sdw_compute_port_params adds nothing > either functionally or in terms of code clarity, remove it. > > Signed-off-by: Charles Keepax This one is easy enough, thanks! Reviewed-by: Pierre-Louis Bossart > --- > drivers/soundwire/generic_bandwidth_allocation.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/drivers/soundwire/generic_bandwidth_allocation.c b/drivers/soundwire/generic_bandwidth_allocation.c > index 325c475b6a66d..31162f2b56381 100644 > --- a/drivers/soundwire/generic_bandwidth_allocation.c > +++ b/drivers/soundwire/generic_bandwidth_allocation.c > @@ -139,20 +139,16 @@ static void _sdw_compute_port_params(struct sdw_bus *bus, > { > struct sdw_master_runtime *m_rt; > int hstop = bus->params.col - 1; > - int block_offset, port_bo, i; > + int port_bo, i; > > /* Run loop for all groups to compute transport parameters */ > for (i = 0; i < count; i++) { > port_bo = 1; > - block_offset = 1; > > list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { > - sdw_compute_master_ports(m_rt, ¶ms[i], > - port_bo, hstop); > + sdw_compute_master_ports(m_rt, ¶ms[i], port_bo, hstop); > > - block_offset += m_rt->ch_count * > - m_rt->stream->params.bps; > - port_bo = block_offset; > + port_bo += m_rt->ch_count * m_rt->stream->params.bps; > } > > hstop = hstop - params[i].hwidth;