Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp241050lqn; Thu, 11 Apr 2024 22:50:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWU9l5paiqCsl/Ss1gnQzyqaGpsj2M1jC7u+ooubcbobo79kdUbseGliKQHdgOlK31KUWWF8RJ2fQ/xF912YGkcTB94xizcdwNa5iElow== X-Google-Smtp-Source: AGHT+IECn+RtIwjubpZ4rTYJuP5vRpZqr4bVZplgSD49/i1sc7J/vPk1qJP9DDKUfZpQRtdcEAFz X-Received: by 2002:a50:9991:0:b0:565:bb25:bb7a with SMTP id m17-20020a509991000000b00565bb25bb7amr1164943edb.24.1712901007846; Thu, 11 Apr 2024 22:50:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712901007; cv=pass; d=google.com; s=arc-20160816; b=X7vaUtjgtqqw3qoI6ZvURqJ3IC1us8vgp5Hkb+2iUqojwY2U3eka7/wXURbcGmhvN3 UXl5VXdd8rNEg233+hYOw8o4CCembGpV0M03R8BFHlKZJBjRLMeK6ickCET6kuXluTsc lLQ+J/gmCR4+loPBY9OAiAcLQ67FT2I6PDhWaWRXTUB/Qv21Fl3DjYCmj1kMJ1GKozlB javsw8BOkuxLp/CpiFIKvRLuZfXO0gzm8+Cn2j7LJf/1WqaJQd/yRQA6nRqlz/Kv2jRi WBWIkP8n/UpUogL7aAlADLcFiO9nO/HLRAVyma304EfecHo3EMVLiaB7iz6ZNeLLwVs9 i8wA== 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=qg+zYhclHNe/YKT6SbP0FsfwObVCJx628HY4IDmLFjg=; fh=SSA3cdYu0EGASNnz8C8AJoDa9YX/HwSHa6Z/iX1E9xo=; b=REiWpnPTeFP/10+Vg+5xMKqmfgWqjGhdEzwgAhZnrsrMr1Rkg8bz+ASCQDzVCeiHzI RfkqbLvQHEKtH1dCissdP1Z9CYEHAgYRPI3lH/7/VkBIhmjTfCAS10MgLAQljnnrN4pu NNxp8E412gZKwzrXrnnBFLodv65RaXqKBjQ3u1nwLXmNMXos+/vN1sLvP93RwV2g3NJX Z8ZDUv4YIFfz2N9WeQ9V2i2WD0kUnCP7CTvegaz2upO1WFvTwgi34Ly/+v7zbGvCT8Js MkJbz4IZ6FVumEIJwDLybHlhH2KJkbQtZ97Gb0yrY5qNoHRulhkLW6lLRE9bfNDzANXI MsuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wvQieRG0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-141997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 16-20020a508750000000b0057000ef435dsi80847edv.677.2024.04.11.22.50.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 22:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wvQieRG0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-141997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141997-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 68B0C1F22EA0 for ; Fri, 12 Apr 2024 05:50:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0852B1BF34; Fri, 12 Apr 2024 05:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wvQieRG0" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D775E1BC4E for ; Fri, 12 Apr 2024 05:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712900999; cv=none; b=fdS7SbG4E3+z0vgOxqqbTWUXG0DZ2ZTRoSRozV3Faj1VvJ21b23m+r1pWo2WD9CLyBBR+xyJGpM33gVl/ZRgO9fJA3osMf05Uj+wcWnB9uUumxO4z9X4D3XwCrBzDUh/Ba2kU1qQvigvXG1cefjQvsUQTu65EF/BWWPEXYDjhdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712900999; c=relaxed/simple; bh=kUizxTcZ6cyvhnTtmGHd1w+aCsbtemQaV35WRg9+mU4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H/OoE/sdTJEX66ICE0rByPBHZwFValBN1fx292eAVa711zNq3FQGGjVSka2VoXWSEHGEsVnGGk1QEZmN3CHsO0p0ax88CxT+0ACGBxdvCquKwQ9dhM1wnYWtUP1fXfSe8a1pwhQQkGmijpiv8+XtUU2n570w/9SnxuraoGHxNiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=wvQieRG0; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6ed112c64beso510239b3a.1 for ; Thu, 11 Apr 2024 22:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712900997; x=1713505797; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qg+zYhclHNe/YKT6SbP0FsfwObVCJx628HY4IDmLFjg=; b=wvQieRG0ZqaN2k5ez6Zn6LJPoUjLDViMT5ThrzEQgq+jPAqcuLGqPik/cK7aWv/MfN 6wCzCR6hlKVJ+RiOmbzVRQDjhG+tmtk4SR3VEMmeG8BOCiUc5iaerOaXL2tdcddK3dtO kly6QqrAIYSwS9GS+wwf6sRkiVLUDUugrWsVW1DFpZgDfAT9pA5Ste2mULGDo/fnwyPM E12bhYfik2B/O/mSwH6EPPpvP+F8IYlSWpf7HJtDNGVw5uiBvT7QddGxR+vnkWhcix9C DLeQm1bMidbASwZ1tx+T+Y5Eh0qqJOIaP/jpwfl7WKMs2VSahs6tvLpYSjdjIP9/Fq7Q xc1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712900997; x=1713505797; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qg+zYhclHNe/YKT6SbP0FsfwObVCJx628HY4IDmLFjg=; b=a7Wlo0K1NwJMtNWRAeuOwjQ6lzY6RlVcasg8/b+/0rs6d6iPx9A6caryveU71nibMZ nchPYF8A0WPbFoWehLaNOe9VgFUu0wJXd5QvPgXKj9nJXnhophyjBWiXuQd8KGDygIio 1McIaaYho6qDu/KL+XdOkfgrXjMfKV83msS7+jGnJKyhECsWILUOlOH2AVFY+g3874ms lD2y+1/Xf2vRBCL+jfF8oRAdjt2fCOEffWX7i1Gtd8/PxwHcg196/DNLB5zxm6ypS+r+ SK2q3EL8EevgitNrNYzZEMehALeeKgQlZKiClCCASD5UiUOkywYtJ851cAgaBLKfSQoq smLw== X-Forwarded-Encrypted: i=1; AJvYcCXFSFAgXf1DKNIUN99epV7igPPoQJSwu4+dFk4JhgE8zdgiZ6r/eI/z+SytL6PhEF8tOnNMbY3w/5fvnTzzmG3jz1X3v3i38RtCC2SA X-Gm-Message-State: AOJu0YxXKUr8wtQwNlbNCBJxGAbtDbnoCyeuv0JMNi1FW3OVeZMgvUk8 GCPZEvo+blywetmuI0cxwIhL7kPz1glu/VUv2NtEZxpWVG1SxuYl4eL5WIkBwYY= X-Received: by 2002:a05:6a20:2d08:b0:1a9:ab88:f938 with SMTP id g8-20020a056a202d0800b001a9ab88f938mr674107pzl.19.1712900996885; Thu, 11 Apr 2024 22:49:56 -0700 (PDT) Received: from localhost ([122.172.85.136]) by smtp.gmail.com with ESMTPSA id ft15-20020a17090b0f8f00b0029c19285192sm3767408pjb.44.2024.04.11.22.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 22:49:56 -0700 (PDT) Date: Fri, 12 Apr 2024 11:19:54 +0530 From: Viresh Kumar To: Lizhe Cc: rafael@kernel.org, ilpo.jarvinen@linux.intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: pcc-cpufreq: Remove redundant exit() functions Message-ID: <20240412054954.qve7udfq56dz7qiq@vireshk-i7> References: <20240409125003.3444-1-sensor1010@163.com> 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: <20240409125003.3444-1-sensor1010@163.com> On 09-04-24, 05:50, Lizhe wrote: > The return value of exit() is 0 and it performs no action. > This function can be omitted. Please refer to the end condition > check in the __cpufreq_offline() function. > > Signed-off-by: Lizhe > --- > drivers/cpufreq/pcc-cpufreq.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c > index 6f8b5ea7aeae..771efbf51a48 100644 > --- a/drivers/cpufreq/pcc-cpufreq.c > +++ b/drivers/cpufreq/pcc-cpufreq.c > @@ -562,18 +562,12 @@ static int pcc_cpufreq_cpu_init(struct cpufreq_policy *policy) > return result; > } > > -static int pcc_cpufreq_cpu_exit(struct cpufreq_policy *policy) > -{ > - return 0; > -} > - > static struct cpufreq_driver pcc_cpufreq_driver = { > .flags = CPUFREQ_CONST_LOOPS, > .get = pcc_get_freq, > .verify = pcc_cpufreq_verify, > .target = pcc_cpufreq_target, > .init = pcc_cpufreq_cpu_init, > - .exit = pcc_cpufreq_cpu_exit, > .name = "pcc-cpufreq", > }; Acked-by: Viresh Kumar -- viresh