Skip to content

Commit

Permalink
powercap: DTPM: Drop unused local variable from init_dtpm()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Dec 3, 2021
1 parent f751db8 commit 1ac5e21
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/powercap/dtpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1ac5e21

Please sign in to comment.