diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-09-29 13:26:05 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-10-30 18:19:44 +0100 |
commit | b158b69a37651b20a0e68f89cf118461e7de4872 (patch) | |
tree | 1f3a793ce241a7d19bb9444c39d9b93bae2d0e1e /drivers/mfd/rts5227.c | |
parent | mfd: kempld-core: Simplify function return logic (diff) | |
download | linux-b158b69a37651b20a0e68f89cf118461e7de4872.tar.xz linux-b158b69a37651b20a0e68f89cf118461e7de4872.zip |
mfd: rtsx: Simplify function return logic
The invoked functions already return zero on success or a negative
errno code so there is no need to open code the logic in the caller.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/rts5227.c')
-rw-r--r-- | drivers/mfd/rts5227.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mfd/rts5227.c b/drivers/mfd/rts5227.c index ce012d78ce2a..c5a65298c781 100644 --- a/drivers/mfd/rts5227.c +++ b/drivers/mfd/rts5227.c @@ -179,11 +179,7 @@ static int rts5227_card_power_on(struct rtsx_pcr *pcr, int card) SD_POWER_MASK, SD_POWER_ON); rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PWR_GATE_CTRL, LDO3318_PWR_MASK, 0x06); - err = rtsx_pci_send_cmd(pcr, 100); - if (err < 0) - return err; - - return 0; + return rtsx_pci_send_cmd(pcr, 100); } static int rts5227_card_power_off(struct rtsx_pcr *pcr, int card) |