Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5842073rwd; Mon, 5 Jun 2023 09:14:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ud4buHQrCajssJ81i6UbOxn7w2GUVrMfwvBdRjDYmi/GN6FJgUkqACTW4Eel9yeCM/6Is X-Received: by 2002:a05:6a00:194a:b0:650:154:8bd with SMTP id s10-20020a056a00194a00b00650015408bdmr137400pfk.17.1685981653667; Mon, 05 Jun 2023 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685981653; cv=none; d=google.com; s=arc-20160816; b=fhYOjlqDcnhmOSHYo8Xtmq9gP97RjfSV+hc8Dtjg/OZaPgdYTfNQ32OyqMBFpV7bMz Ko1+omcMCXHcRyXWRZ37xTxV1FDP5ncll6zzyto+94a8nP9iYU0VN5gko7xxpnIlRbQo d8QjqCDs8OCcfXNnHRA7YdCazsxWjcYBM3VLPKn5kovmnS5294YGAN2bGopxK5pGS8uW EhMWELtpI2XB0YkIKTw5oJBJhP2aRtQidKMn8lXuj22+g3KUWR5jEqV/pTYqtj8IVfhA tHmuWTmc09foXa1OLPbfXGN2pnpty9QODV3DoAgKppQpAjzVnAlFO9J4lhrlYGBBJkGv T0bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TGDRmVACt39TB4Ik/ehUtQHrEFNQm7EgY0tA6zser9Q=; b=RfvyDU0+f2X5oBJ0QfwUedyIXsyfKXSemmWK+T9zfzkdxupXwNyId9xPitnS4b/JgU dpkjZ8me0/YXxECmgnc5VO2ssLA1VSHiACEQ+1DCOLw3wfHWGq25TUKpSS/60LL9TmaB U6f6CwifVVXPp5w9pFpZ4hjC3pPqQk3rm/ub35OryQMY+grhl1qK+KH2J/RertzA89Lk s/TslLucWE8nduchTt5RwfqdPggImh3Df4w3zG2+8T4l+HjUmUXY7kbfng5SeB0sny+m TNIG+lmo/5ilLxE1JJEfCirOysx1IRLFOtV7wpM9uhspypygEmydZlf9EEFVPaHjpp1y MeGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XQQ95xee; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs8-20020a632808000000b0053f21272753si5662661pgb.9.2023.06.05.09.13.59; Mon, 05 Jun 2023 09:14:13 -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=@kernel.org header.s=k20201202 header.b=XQQ95xee; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235064AbjFEPnK (ORCPT + 99 others); Mon, 5 Jun 2023 11:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbjFEPmi (ORCPT ); Mon, 5 Jun 2023 11:42:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A83210C7 for ; Mon, 5 Jun 2023 08:42:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2C07C62729 for ; Mon, 5 Jun 2023 15:41:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECC14C433D2; Mon, 5 Jun 2023 15:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685979688; bh=+WQQuLVMz0dVlwh4gz6ce/VTv4FW4L+Vcxee8MeZteg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XQQ95xeeJteSYArjXKbL6Y7mfg2Kz9Dn04aVgJQg7f3UGL5EM8kLg97nECoBqhWwg eBjLjgE0rAvfVkwGKysPRPSv4qAuXUamw1nFE8TxHlMMhleDNYojHgAJ43tU6Wq5W5 CLgRujVLKctujLgVIRlfezUhoSk6RUcHMI/UjiTFDZEDfQ7xViOoJJon0zlE6/Gi7+ Ncl5JTST1IeNVHvvdeLnX1tZefc24b7gfgREJ2oE6HeeHnlLHtDSdba1qm9/bGNK/Z 6iIuuRRBtPXE4GSYKmJgAVC7UzNG5ft9DmCWP3yJB9QaU9qJ5XBFdtAqnO9VOQa5t0 AELOVhiFsikbw== Date: Mon, 5 Jun 2023 08:41:26 -0700 From: Nathan Chancellor To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Stuart Yoder , Laurentiu Tudor , Nick Desaulniers , Tom Rix , Li Yang , Ioana Ciornei , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel@pengutronix.de, kernel test robot Subject: Re: [PATCH 2/2] bus: fsl-mc: fsl-mc-allocator: Drop a write-only variable Message-ID: <20230605154126.GC2480995@dev-arch.thelio-3990X> References: <20230605112025.80061-1-u.kleine-koenig@pengutronix.de> <20230605112025.80061-2-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230605112025.80061-2-u.kleine-koenig@pengutronix.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Mon, Jun 05, 2023 at 01:20:25PM +0200, Uwe Kleine-K?nig wrote: > Fixes a clang compiler warning: > > drivers/bus/fsl-mc/fsl-mc-allocator.c:565:6: warning: variable 'free_count' set but not used [-Wunused-but-set-variable] > int free_count = 0; > > Fixes: d8e026a44919 ("staging: fsl-mc: remove some superfluous WARN_ONs") > Reported-by: kernel test robot > Signed-off-by: Uwe Kleine-K?nig Reviewed-by: Nathan Chancellor > --- > drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/bus/fsl-mc/fsl-mc-allocator.c b/drivers/bus/fsl-mc/fsl-mc-allocator.c > index 991273f956ce..b5e8c021fa1f 100644 > --- a/drivers/bus/fsl-mc/fsl-mc-allocator.c > +++ b/drivers/bus/fsl-mc/fsl-mc-allocator.c > @@ -563,12 +563,9 @@ static void fsl_mc_cleanup_resource_pool(struct fsl_mc_device *mc_bus_dev, > struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev); > struct fsl_mc_resource_pool *res_pool = > &mc_bus->resource_pools[pool_type]; > - int free_count = 0; > > - list_for_each_entry_safe(resource, next, &res_pool->free_list, node) { > - free_count++; > + list_for_each_entry_safe(resource, next, &res_pool->free_list, node) > devm_kfree(&mc_bus_dev->dev, resource); > - } > } > > void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev) > -- > 2.39.2 >