drivers/regulator: remove redundant ret variable
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 13 Dec 2021 02:16:55 +0000 (02:16 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 Dec 2021 19:35:43 +0000 (19:35 +0000)
commitc57dbcab04449ec869561a9056d0de1a07cbb863
treec9467f59f946179f5e7da48c97f4c99be8dc01f2
parent8d9f738f16a3ee9f2341578873c542ddd9802fe4
drivers/regulator: remove redundant ret variable

Return value from twlreg_write() directly instead
of taking this in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Link: https://lore.kernel.org/r/20211213021655.435423-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/twl-regulator.c