cpufreq: stats: don't check for freq table while freeing stats
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 6 Jan 2015 15:39:04 +0000 (21:09 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 22:06:43 +0000 (23:06 +0100)
commitf93dbbbd108936b18b3230af36d9a36866ce69a7
tree1ca2f65cd9fe945bd8185b18b73879959c1216bb
parent9531347c61f689ac6de899a03ce91be4157277f7
cpufreq: stats: don't check for freq table while freeing stats

While we allocate stats, we do need to check if freq-table is present
or not as we need to use it then. But while freeing stats, all we need
to know is if stats holds a valid pointer value. There is no use of
testing if cpufreq table is present or not.

Don't check it.

Reviewed-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_stats.c