Skip to content

Commit

Permalink
mfd: palmas: Remove redundant check in palmas_power_off
Browse files Browse the repository at this point in the history
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 <j-keerthy@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Keerthyj authored and Lee Jones committed Nov 29, 2016
1 parent fb36f77 commit 445c930
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mfd/palmas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 445c930

Please sign in to comment.