Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1961994lqe; Tue, 9 Apr 2024 06:04:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfZ/hNTxGmbvEc84/zaLmWakrZnZ1WnGD8qLwSkR3+R2cLiPmpUAAsZDsb0atWmnjX8X5bV3iYL1GLzu17ALzyV78tkGDrkPNsa+k55g== X-Google-Smtp-Source: AGHT+IFwEtaO8cktrZtOUl5nolbeVeUsiroxEE/i7KbH2/oVhLIzDkfosxsc4uUaQyav4jvbt1Mz X-Received: by 2002:a17:902:e88e:b0:1e4:61b:98c6 with SMTP id w14-20020a170902e88e00b001e4061b98c6mr3992174plg.4.1712667870301; Tue, 09 Apr 2024 06:04:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712667870; cv=pass; d=google.com; s=arc-20160816; b=hMNIwgwhRnNRbY8QVVbmAUIeJb6RD3AHafmZqiiu46sF2Lf1pW3NGnuKq6qMS2hU4X eoW+L03zFkwNGet+5jXBAi/HUlq9bo/Pm+wcdx3DIrYIJPCV66jJSutVaW89GQBsVamR YzbjdZssgcq6inJQTP5hXqkknavOytvROMsprL7CcZvKmhJEG/tk/g0ZwVmRA6TPBmZ/ e/1UyiZxLrFaOgCmj3eDdzwuEoab7Fabjbdaq1TQMRxk9Xvhob9p3zhw31jyHnm1rsN/ yCXC/NzwE3CZzCtLHcdODCoXtZ+d2CZ5PAhuNmgQcC4ZI8Uqstbpg5wM1+aajf6oavKL TKvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=WZivzwtwPwc9kG+G0Vu61F+ka3jn+iKxoNnbOmG8MBQ=; fh=wgBX3AT1n5UTrmXahe1PUmkA6Bbs5kjDMIU8GZM7ACA=; b=KEoou+B8akv3Be2TWpzfjQO2XNn1BIYeLQotAm0Zg0WtBce5g3mBfhhzE8nuiZbqaL GDFnI1GbrXnj52QkkE7//WwpT55AOYgTrLT4J687fPL/54R+zPrtcq7BkM5hSkEGm1LE olsDlQkr9yHABgUEkrRygB0r5pTbWIRSR33TOE7CKFGFa49J9/ks7y9ELz12kcxpHE9R Zo6QgW8+sy42YX5BXPfYqK55Q1km+V4DZo9VInwup1+cf8VKF3RPg0kPtqZCxCS2PRgM DjzGf0FdoGpd6eEuTj30jTQ2gMuZGUAzpxrQ827lRfZYj9kHY24mkCNTOATQxpkPRBoU Jx2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=HiYwBjzH; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-136889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id mf15-20020a170902fc8f00b001e3e0a8b2dbsi6168358plb.488.2024.04.09.06.04.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=HiYwBjzH; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-136889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 238A9B258EF for ; Tue, 9 Apr 2024 12:51:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EA1512E1D5; Tue, 9 Apr 2024 12:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="HiYwBjzH" Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A13312D74E; Tue, 9 Apr 2024 12:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.2 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712667100; cv=none; b=KVV8epURTaC3x1fQZVBrMVoJ096w6P61wBCSnGMVZJfLgoGj3MmFH3vSij7vZw8lUp+3R/b5TguLBhnErpJO4/TfUPItC+IPkyHRRSDeIuFvGgqWw+iPPEJ+isEdOZuC4KKo2wyNL8xbd+ozXFjaZWLf9rvKIrQHTIn2KA64rJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712667100; c=relaxed/simple; bh=DYX4vIIIOWQc+9yScerhkr5DQdAMibuqO+5fAhz/7SQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Jl7cXoHS7B0po99Xo2XBiZFUdGor6SmYHjjvFPpBH5HPEZGSFqul+mFwqlkCEgw8FUnvhFe6azG5NCyL0OM/RCtG594UsqPp65Iw3QM0cWcjD+pTNwrWW+V52YFihLHnOAVZCaIXpoRHJyHCroe5BUk83HGy0KJUZQZOoa4t9JY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=HiYwBjzH; arc=none smtp.client-ip=220.197.31.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=WZivz wtwPwc9kG+G0Vu61F+ka3jn+iKxoNnbOmG8MBQ=; b=HiYwBjzHMXzn90wwkRVrs I26kNBLc5BLIhBVnj+TflXJM3u/IJPjjE8n0b7DpAUoIK53jOrz8ak0z6TL6vCqI bGzeKgxk6zaROx2q+2kjlTV9Fwtoz2BDdHi18N3r+EjLldOsUJQNHOpM3f7vJpn+ oDfb/4vrqiMCN9TpwbSlso= Received: from localhost.localdomain (unknown [101.86.11.106]) by gzga-smtp-mta-g2-5 (Coremail) with SMTP id _____wDXL2GEORVm3QVrAg--.35825S4; Tue, 09 Apr 2024 20:50:47 +0800 (CST) From: Lizhe To: rafael@kernel.org, viresh.kumar@linaro.org, ilpo.jarvinen@linux.intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Lizhe Subject: [PATCH] cpufreq: pcc-cpufreq: Remove redundant exit() functions Date: Tue, 9 Apr 2024 05:50:03 -0700 Message-Id: <20240409125003.3444-1-sensor1010@163.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wDXL2GEORVm3QVrAg--.35825S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jw1xZF4rGr4ftry5Gr1xZrb_yoWDGrg_C3 y3ur17GrWj9w1DtF17Gr48tryaya12qr1v9F10y39IkF17Ar9Yvr1kWr17WrW8Xw4rGF9r A3y0vF17uw4UAjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sREvtAtUUUUU== X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/1tbiSAe7q2XAk0aYWgAAst 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", }; -- 2.25.1