diff mbox

[v1,3/5] platform/x86: intel_telemetry: Fix local variables

Message ID 1510827497-25188-4-git-send-email-souvik.k.chakravarty@intel.com (mailing list archive)
State Changes Requested, archived
Headers show

Commit Message

Chakravarty, Souvik K Nov. 16, 2017, 10:18 a.m. UTC
Remove unnecesary 'static' qualifier.

Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
---
 drivers/platform/x86/intel_telemetry_debugfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Andy Shevchenko Nov. 17, 2017, 1:29 p.m. UTC | #1
On Thu, Nov 16, 2017 at 12:18 PM, Souvik Kumar Chakravarty
<souvik.k.chakravarty@intel.com> wrote:
> Remove unnecesary 'static' qualifier.

unnecessary

Looks like a candidate to be folded in previous one.
diff mbox

Patch

diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c
index d0fce8c..60596a1 100644
--- a/drivers/platform/x86/intel_telemetry_debugfs.c
+++ b/drivers/platform/x86/intel_telemetry_debugfs.c
@@ -857,8 +857,8 @@  static int pm_suspend_prep_cb(void)
 static int pm_suspend_exit_cb(void)
 {
 	struct telemetry_evtlog evtlog[TELEM_MAX_OS_ALLOCATED_EVENTS];
-	static u32 suspend_shlw_ctr_exit, suspend_deep_ctr_exit;
-	static u64 suspend_shlw_res_exit, suspend_deep_res_exit;
+	u32 suspend_shlw_ctr_exit = 0, suspend_deep_ctr_exit = 0;
+	u64 suspend_shlw_res_exit = 0, suspend_deep_res_exit = 0;
 	struct telemetry_debugfs_conf *conf = debugfs_conf;
 	u32 shlw_lo, shlw_hi, deep_lo, deep_hi;
 	int ret, index;