From: Keerthy Date: Thu, 10 Nov 2016 05:09:17 +0000 (+0530) Subject: mfd: palmas: Remove redundant check in palmas_power_off X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=445c93093d7f28a0a07fd10f0d7a8aada4e1932e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Keerthy Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 8f8bacb67a15..ee9e9ea10444 100644 --- a/drivers/mfd/palmas.c +++ b/drivers/mfd/palmas.c @@ -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);