regulator (max5970): Remove duplicate line

Remove redundant/duplicate line.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Link: https://lore.kernel.org/r/20231027152830.1269895-2-naresh.solanki@9elements.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Naresh Solanki 2023-10-27 15:28:29 +00:00 committed by Mark Brown
parent f5afdd13ed
commit 804bf07a1f
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -584,7 +584,6 @@ static int max597x_regulator_probe(struct platform_device *pdev)
else
return -ENODEV;
i2c_set_clientdata(i2c, max597x);
num_switches = max597x->num_switches;
for (i = 0; i < num_switches; i++) {