projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5204f8c
)
thermal: rcar-thermal: fix same mask applied twice
author
Patrick Titiano
<ptitiano@baylibre.com>
Fri, 28 Feb 2014 13:10:03 +0000
(14:10 +0100)
committer
Zhang Rui
<rui.zhang@intel.com>
Tue, 8 Apr 2014 01:01:39 +0000
(09:01 +0800)
Mask is already applied preceding the if statement.
Remove the second mask.
Signed-off-by: Patrick Titiano <ptitiano@baylibre.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rcar_thermal.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/rcar_thermal.c
b/drivers/thermal/rcar_thermal.c
index 79a09d02bbca04ce97c1bf621508f3ae46d7d93d..88cfeec6a28f421ecca3008e190f3e7bebf114fc 100644
(file)
--- a/
drivers/thermal/rcar_thermal.c
+++ b/
drivers/thermal/rcar_thermal.c
@@
-313,7
+313,7
@@
static u32 rcar_thermal_had_changed(struct rcar_thermal_priv *priv, u32 status)
status = (status >> rcar_id_to_shift(priv)) & 0x3;
- if (status
& 0x3
) {
+ if (status) {
dev_dbg(dev, "thermal%d %s%s\n",
priv->id,
(status & 0x2) ? "Rising " : "",