]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powercap: DTPM: Drop unused local variable from init_dtpm()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Dec 2021 16:51:59 +0000 (17:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Dec 2021 16:51:59 +0000 (17:51 +0100)
The dtpm_descr variable in init_dtpm() is not used after commit
a59a56ccac1c ("powercap/drivers/dtpm: Disable DTPM at boot time"),
so drop it.

Fixes: a59a56ccac1c ("powercap/drivers/dtpm: Disable DTPM at boot time")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/dtpm.c

index fb35c5828bfb54696ab89e6b87d5d14586b724be..2a5c1829aab790f6b4ade183ec96e2eca84c357b 100644 (file)
@@ -463,8 +463,6 @@ int dtpm_register(const char *name, struct dtpm *dtpm, struct dtpm *parent)
 
 static int __init init_dtpm(void)
 {
-       struct dtpm_descr *dtpm_descr;
-
        pct = powercap_register_control_type(NULL, "dtpm", NULL);
        if (IS_ERR(pct)) {
                pr_err("Failed to register control type\n");