summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-09-25 20:13:58 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-10-10 23:56:22 +0200
commit3b91f4b361daad1f3e1c60ca5a7861e8b36f9728 (patch)
tree967a33f8b2417961571ac16cffc36987eb5d26ca /drivers
parent69e67a0626e503676ea2933b448f7aca8dd544f5 (diff)
downloadop-kernel-dev-3b91f4b361daad1f3e1c60ca5a7861e8b36f9728.zip
op-kernel-dev-3b91f4b361daad1f3e1c60ca5a7861e8b36f9728.tar.gz
PM / devfreq: exynos-nocp: Remove redundant code
load_count/total_count are reset by devfreq_event_get_event(), so remove the redundant code in exynos_nocp_get_event(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> [ rjw: Subject/changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/devfreq/event/exynos-nocp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c
index a584140..49e712a 100644
--- a/drivers/devfreq/event/exynos-nocp.c
+++ b/drivers/devfreq/event/exynos-nocp.c
@@ -176,9 +176,6 @@ static int exynos_nocp_get_event(struct devfreq_event_dev *edev,
return 0;
out:
- edata->load_count = 0;
- edata->total_count = 0;
-
dev_err(nocp->dev, "Failed to read the counter of NoC probe device\n");
return ret;
OpenPOWER on IntegriCloud