From: Patrick Titiano Date: Fri, 28 Feb 2014 13:10:03 +0000 (+0100) Subject: thermal: rcar-thermal: fix same mask applied twice X-Git-Tag: upstream/snapshot3+hdmi~968 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31507c68d374afa92ebcd4d6e1d00051b2f9d90a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Kuninori Morimoto Signed-off-by: Zhang Rui (cherry picked from commit 206c0cba095acbb91d552d220207d690c9b29594) Signed-off-by: Simon Horman --- diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 79a09d0..88cfeec 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 " : "",