diff options
author | Nathan Huckleberry <nhuck@google.com> | 2019-06-13 20:49:23 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2019-08-28 10:41:02 +0200 |
commit | 9aee3713135a6733f6e58ec84c1ce24514579039 (patch) | |
tree | b5189f1b6715baad1a1ab3b0ccd4dffea2b47a89 /drivers/thermal/tango_thermal.c | |
parent | Linux 5.3-rc5 (diff) | |
download | linux-9aee3713135a6733f6e58ec84c1ce24514579039.tar.xz linux-9aee3713135a6733f6e58ec84c1ce24514579039.zip |
thermal: armada: Fix -Wshift-negative-value
Clang produces the following warning
drivers/thermal/armada_thermal.c:270:33: warning: shifting a negative
signed value is undefined [-Wshift-negative-value]
1 warning reg &= ~CONTROL1_TSEN_AVG_MASK <<
CONTROL1_TSEN_AVG_SHIFT; generated
.
~~~~~~~~~~~~~~~~~~~~~~~ ^
CONTROL1_TSEN_AVG_SHIFT is defined to be zero.
Since shifting by zero does nothing this variable can be removed.
Cc: clang-built-linux@googlegroups.com
Link: https://github.com/ClangBuiltLinux/linux/issues/532
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/tango_thermal.c')
0 files changed, 0 insertions, 0 deletions