]> git.baikalelectronics.ru Git - kernel.git/commit
powercap: intel_rapl: remove redundant store to value after multiply
authorColin Ian King <colin.i.king@gmail.com>
Wed, 18 May 2022 08:45:36 +0000 (09:45 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 May 2022 17:48:17 +0000 (19:48 +0200)
commit222463adf3c5f5fb66bab15db6672cdf63af244c
treed29f556ab448da763591abd31dd594e89f11e810
parent7ba31e7ac37fff1a7f8666f1a7c56386b93ed50b
powercap: intel_rapl: remove redundant store to value after multiply

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]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl_common.c