regulator: remove redundant ret variable
authorMinghao Chi <chi.minghao@zte.com.cn>
Tue, 4 Jan 2022 10:41:39 +0000 (10:41 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 4 Jan 2022 15:00:39 +0000 (15:00 +0000)
commit1f156b4285865dc2eb66e7a78c7ba80c17bb2b0a
treeab264ecafb7ebaacb81149a3c4cca100bb2a0b83
parentd27bb69dc83f00f86a830298c967052cded6e784
regulator: remove redundant ret variable

Return value from regmap_update_bits() 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>
Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
Link: https://lore.kernel.org/r/20220104104139.601031-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6380-regulator.c