Skip to content

Commit

Permalink
thermal: rcar-thermal: fix same mask applied twice
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrick Titiano authored and Zhang Rui committed Apr 8, 2014
1 parent 5204f8c commit 206c0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/rcar_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 " : "",
Expand Down

0 comments on commit 206c0cb

Please sign in to comment.