Commit 83d8909d authored by Colin Ian King's avatar Colin Ian King Committed by Xiaolong Wang
Browse files

powercap: intel_rapl: remove redundant store to value after multiply

mainline inclusion
from mainline-v5.19-rc1
commit 59cafa72
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I92135

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=59cafa728c373551423d67a1369289a717006a4b



--------------------------------

There is no need to store the result of the multiply back to variable value
after the multiplication. The store is redundant, replace *= with just *.

Cleans up clang scan build warning:
warning: Although the value stored to 'value' is used in the enclosing
expression, the value is never actually read from 'value'
[deadcode.DeadStores]

Intel-SIG: commit 59cafa72 powercap: intel_rapl: remove redundant store to value after multiply
Backport a dependency of Intel RAPL driver support on TPMI.

Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
[ Xiaolong Wang: amend commit log ]
Signed-off-by: default avatarXiaolong Wang <xiaolong.wang@intel.com>
parent 581bc989
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment