Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Patrick Titiano and committed by
Zhang Rui
206c0cba 5204f8c0

+1 -1
+1 -1
drivers/thermal/rcar_thermal.c
··· 313 313 314 314 status = (status >> rcar_id_to_shift(priv)) & 0x3; 315 315 316 - if (status & 0x3) { 316 + if (status) { 317 317 dev_dbg(dev, "thermal%d %s%s\n", 318 318 priv->id, 319 319 (status & 0x2) ? "Rising " : "",