And remove superfluous brackets.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
break;
}
- if (ret < 0) {
+ if (ret < 0)
goto unapply_new_state;
- }
}
p->state = state;
return 0;
unapply_new_state:
- pr_info("Error applying setting, reverse things back\n");
+ dev_err(p->dev, "Error applying setting, reverse things back\n");
/*
* If the loop stopped on the 1st entry, nothing has been enabled,