]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc604ca90812474d03b6bac5b7718922e8dd12053
treec9467f59f946179f5e7da48c97f4c99be8dc01f2
parent6d1cbe91e70218bd713e8341dba8d9faafe61828
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