diff options
author | Colin Ian King <[email protected]> | 2023-10-23 14:58:28 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2023-10-28 09:21:22 -0700 |
commit | 748465a53eedbc2c440ac07f6b2328de6263dbfd (patch) | |
tree | 98f69d248af0b0631fa23bb547a17b04f344c9c6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 1b515cfee17810e74cda9cf020e302747821d46c (diff) |
hwmon: (hs3001) remove redundant store on division
Currently the local variable hum is being divided by a constant and
the results is being re-assigned back to hum before the value is being
returned to the caller. The assignment to hum is redundant and can
be removed.
Cleans up clang scan build warning:
drivers/hwmon/hs3001.c:65:9: warning: Although the value stored to 'hum'
is used in the enclosing expression, the value is never actually read
from 'hum' [deadcode.DeadStores]
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions