regulator: max597x: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Wed, 24 Aug 2022 07:47:07 +0000 (07:47 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 24 Aug 2022 11:21:30 +0000 (12:21 +0100)
commit48aa47308de609e687dc187b72de92e3346c4187
treece6a5a2615aca61c583ba25536bc0dcf825c8d85
parentd9270292e6174551d3b02a49b310ddf56c0225fe
regulator: max597x: Remove the unneeded result variable

Return the value from regmap_write() directly instead of storing it
 in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220824074707.221159-1-ye.xingchen@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max597x-regulator.c