aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-11-22 17:57:05 +0000
committerZhang Rui <rui.zhang@intel.com>2016-11-30 10:24:38 +0800
commit89baa56be7fad333db0a91198bf4026017ab737d (patch)
treea9154ef268c1f2fda4a7a8f89c899a3a52fa993f /tools/perf/util/c++/clang.cpp
parent768bd13c93c043a7793dca6d98ba75572bb9b956 (diff)
thermal/x86_pkg_temp: Remove redundant package search
In pkg_temp_thermal_device_remove() the package device is searched at the beginning of the function. When the device refcount becomes zero another search for the same device is conducted. Remove the pointless loop and use the device pointer which was retrieved at the beginning of the function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions