Skip to content

Commit 1ac5e21

Browse files
committed
powercap: DTPM: Drop unused local variable from init_dtpm()
The dtpm_descr variable in init_dtpm() is not used after commit f751db8 ("powercap/drivers/dtpm: Disable DTPM at boot time"), so drop it. Fixes: f751db8 ("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>
1 parent f751db8 commit 1ac5e21

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/powercap/dtpm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,6 @@ int dtpm_register(const char *name, struct dtpm *dtpm, struct dtpm *parent)
463463

464464
static int __init init_dtpm(void)
465465
{
466-
struct dtpm_descr *dtpm_descr;
467-
468466
pct = powercap_register_control_type(NULL, "dtpm", NULL);
469467
if (IS_ERR(pct)) {
470468
pr_err("Failed to register control type\n");

0 commit comments

Comments
 (0)