Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 445c9309 authored by Keerthy's avatar Keerthy Committed by Lee Jones
Browse files

mfd: palmas: Remove redundant check in palmas_power_off



palmas_dev and palmas_power_off are always assigned together.
So the check for palmas_dev inside palmas_power_off function
is redundant. Removing the same.

Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent fb36f77e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -431,9 +431,6 @@ static void palmas_power_off(void)
	unsigned int addr;
	int ret, slave;

	if (!palmas_dev)
		return;

	slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE);
	addr = PALMAS_BASE_TO_REG(PALMAS_PMU_CONTROL_BASE, PALMAS_DEV_CTRL);