Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp154035lqg; Wed, 10 Apr 2024 20:17:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3FKOUVm1/WrXKp5AuY55o8ytPPT92+I82PQvUT2SBeWkKfsP/6u2Z6/tWwdlANQVtbQq4MJUD3R86VHyCZtQD5NyJ/3D/nGIcQVop6w== X-Google-Smtp-Source: AGHT+IHYt5YWGTPfjAjZ1kYOn8eIVAfQmt10X4qshGS2vpQn5fhOb16s4vv9xxn1Bdkjr1CAdyVu X-Received: by 2002:a17:903:2309:b0:1e2:a7f5:baf7 with SMTP id d9-20020a170903230900b001e2a7f5baf7mr2348609plh.25.1712805435430; Wed, 10 Apr 2024 20:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712805435; cv=pass; d=google.com; s=arc-20160816; b=k+Es5IF5VQDwrye/IchSf7PxAk5YGMsH+1jc5oH0rLHlVIkuFkwMKvanDP9RzAdGk7 vC6s8ob322W/Lfg7Y02yTzY2U1fw9mHj0/tfXj6V1nV6W63FO1wIeE6S9HJE9d8Hw+4n 1MmdTabP7T0KPddAM/1tjQsvaTjpjzaBNa07awjMtXZbx3e0zIn621yoj4fpsz+c/3ti wQXEC6BoWuHzRCu08yaO6OkWVhv9zoWQ7ruWMgas6r9j2b3bRrOvpFYuzGn+yQnxMIFm 5GcadXxHouvSopGizMvkC28GvMUyBZ8IjrGAI6mFM9OKIHRoCRlKYRvIWEPrcmaxVB6D CX7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BnXhucYLxjYERRGbDRKA4VkYT5bMrtDF2K4nVwlTsWU=; fh=9ZI/NPCYQ6FeSvxZvJ4ynlRdof5uSRZ+FQJCLizPJ+U=; b=Ikb5qFpJDk2l6wJ6JuOzc0zcxbb8+xFnKCdXxAFrzMDlC6vd9c3ma1DepVXLVMgR7g Y8t5jrZq8r/WDf31A/UaxHdM9/qQdUAv3UaM5LNiCoa9fiDeGfsHPnMcsNzP4wmrO/av j5DPThJL3lOURWtA/80UD/DLJ+Qc6qsonpO4G6vi2TznMysY1zUIvYBAOjG+s11U3pq+ my9dRPnFv5QeplKBqwH/eONF4+G0bKeLDu5guO2ZQeeF1csgTkzmhZLyRI6800n4JU25 G77k98e0cQ0505Nkx6xPONBeI0baXtGGxtmIGMCdFT3+2Wir6Xp4tj/5PUeWWgfMMpUq cBYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QdrkL7LS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p23-20020a1709027ed700b001e47ffe06b3si435346plb.489.2024.04.10.20.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 20:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QdrkL7LS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E17228BD86 for ; Thu, 11 Apr 2024 03:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A840B13BAD8; Thu, 11 Apr 2024 03:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QdrkL7LS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B22A113B795; Thu, 11 Apr 2024 03:15:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712805356; cv=none; b=B8YZUvYFQRhJ7/lifoJuayzgJrnDXJHBodlDuPax6uKFyMkj8xTtSLFc/S1aeB8EvYY7YuELxqFDr27Qcxa/TWpqB6H9mAx6dZow6COsO+SeA9+nHknqdjtvuB33R8J0oTs8UZHLQa/bOK8EYX3J86tZAGE5Pj5u9empXLhe9bs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712805356; c=relaxed/simple; bh=hy1z9iyb5VzHmSvD9OU1ijF/ELGQxBn3bMjuKQBN8zM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DOyAdRBVxi1rV8KYoF5Evzr9arEiSaVW7ihlflL2K3fC3W+yNU2t1vPL69/vKNNZsh3Qwhys1KOxHhEES4W82eaoS8oP1XxcNDxZ8gGbY0bgD0dH/b3hlCagCkRAsxh2Wq+bu+qhmBo+hAWsH0dFvQ0TBOezXcg2eR7TUt5NC6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QdrkL7LS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F359C433C7; Thu, 11 Apr 2024 03:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712805356; bh=hy1z9iyb5VzHmSvD9OU1ijF/ELGQxBn3bMjuKQBN8zM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QdrkL7LSwLI3ym8riSY+yo8E68yp85sPRsqxrxpkU6jdLBRG+I7iGX5Rzigk21D9X Kgkc1LyYXKuteE968Qjx8JbOtjjFrA1a3f+nxMG0v5d648KEC1+KOnFuKz1SAAudZQ HQYHHUkY2OhpBthIn4ZlOCiOOHI6jSiG6Ue0tpW6S0UgPUZZ3R2NB8064LEtMrwTcW K0vfZ+3Eg+BnDJOzHQk19wSnfAXwmviX5KDNvOIIEW4CnapLYX43Bthz9fwf8naHsK gd3R+bBnzMhplBYUsEs24rdqN1TndbthAUTRzCH1DZz0BhpjuA5W0j6qihQSrBnXca iftK5BtuBSyCA== Date: Wed, 10 Apr 2024 22:15:53 -0500 From: Bjorn Andersson To: Christophe JAILLET Cc: Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] thermal/drivers/qcom: Remove some unused fields in struct qpnp_tm_chip Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Apr 09, 2024 at 09:56:34PM +0200, Christophe JAILLET wrote: > In "struct qpnp_tm_chip", the 'prev_stage' field is unused. > Remove it. > > Found with cppcheck, unusedStructMember. > > Signed-off-by: Christophe JAILLET Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > Compile tested only. > > Apparently, it has never been used. It is not a left-over from a > refactoring. > --- > drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > index 78c5cfe6a0c0..3cd74f6cac8f 100644 > --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > @@ -74,7 +74,6 @@ struct qpnp_tm_chip { > long temp; > unsigned int thresh; > unsigned int stage; > - unsigned int prev_stage; > unsigned int base; > /* protects .thresh, .stage and chip registers */ > struct mutex lock; > -- > 2.44.0 > >