summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Titiano <ptitiano@baylibre.com>2014-02-28 14:10:03 +0100
committerZhang Rui <rui.zhang@intel.com>2014-04-08 09:01:39 +0800
commit206c0cba095acbb91d552d220207d690c9b29594 (patch)
tree4a3d6b73d3f11ef07d3dc746cc1c7d498ad83c7a
parent5204f8c0a7f0fbdc0fe0d1f614b2c436069c8a18 (diff)
downloadlinux-206c0cba095acbb91d552d220207d690c9b29594.tar.gz
linux-206c0cba095acbb91d552d220207d690c9b29594.tar.bz2
linux-206c0cba095acbb91d552d220207d690c9b29594.zip
thermal: rcar-thermal: fix same mask applied twice
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>
-rw-r--r--drivers/thermal/rcar_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 79a09d02bbca..88cfeec6a28f 100644
--- 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 " : "",