thermal: armada: Fix -Wshift-negative-value
authorNathan Huckleberry <nhuck@google.com>
Thu, 13 Jun 2019 18:49:23 +0000 (11:49 -0700)
committerZhang Rui <rui.zhang@intel.com>
Wed, 28 Aug 2019 08:41:02 +0000 (16:41 +0800)
commit9aee3713135a6733f6e58ec84c1ce24514579039
treeb5189f1b6715baad1a1ab3b0ccd4dffea2b47a89
parentd1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1
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>
drivers/thermal/armada_thermal.c