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>
This commit is contained in:
parent
5204f8c0a7
commit
206c0cba09
|
@ -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;
|
status = (status >> rcar_id_to_shift(priv)) & 0x3;
|
||||||
|
|
||||||
if (status & 0x3) {
|
if (status) {
|
||||||
dev_dbg(dev, "thermal%d %s%s\n",
|
dev_dbg(dev, "thermal%d %s%s\n",
|
||||||
priv->id,
|
priv->id,
|
||||||
(status & 0x2) ? "Rising " : "",
|
(status & 0x2) ? "Rising " : "",
|
||||||
|
|
Loading…
Reference in New Issue