mfd: da903x: Simplify function return logic
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 29 Sep 2015 11:26:06 +0000 (13:26 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 30 Oct 2015 17:19:45 +0000 (17:19 +0000)
commit5597da29496317fbcfe4db9f8b65fa8645d4cbed
tree710be94df9a5fe2ce0824b1136307c4c43abb2b8
parentb158b69a37651b20a0e68f89cf118461e7de4872
mfd: da903x: Simplify function return logic

The invoked function already returns 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>
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da903x.c