summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorGayatri Kammela <gayatri.kammela@intel.com>2020-02-27 15:29:15 -0800
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-02-28 12:43:03 +0200
commit08ec5020bd6cf0102ec92c00ed149d8b76ace5ee (patch)
tree24bcbb6dbb1e524eb714d3e6250fbedae89fad5e /drivers/platform/x86
parentaae43c2bcdc1939c4c6a51b3e28460ada68f8c0c (diff)
downloadlinux-08ec5020bd6cf0102ec92c00ed149d8b76ace5ee.tar.bz2
platform/x86: intel_pmc_core: Remove duplicate 'if' to create debugfs entry
A debugfs entry for substate_live_status_registers is created only if the platform has sub-states, which requires the same condition to create substate_status_registers debugfs entry. Hence remove the redundant condition and re-use the existing one. Cc: Chen Zhou <chenzhou10@huawei.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: David E. Box <david.e.box@intel.com> Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/intel_pmc_core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
index 20b2f49726cf..a36051c2a18c 100644
--- a/drivers/platform/x86/intel_pmc_core.c
+++ b/drivers/platform/x86/intel_pmc_core.c
@@ -1108,9 +1108,6 @@ static void pmc_core_dbgfs_register(struct pmc_dev *pmcdev)
debugfs_create_file("substate_status_registers", 0444,
pmcdev->dbgfs_dir, pmcdev,
&pmc_core_substate_sts_regs_fops);
- }
-
- if (pmcdev->map->lpm_status_offset) {
debugfs_create_file("substate_live_status_registers", 0444,
pmcdev->dbgfs_dir, pmcdev,
&pmc_core_substate_l_sts_regs_fops);