Commit 9b8c249e authored by Niklas Cassel's avatar Niklas Cassel Committed by Rafael J. Wysocki

power: avs: qcom-cpr: remove set but unused variable

drivers/power/avs/qcom-cpr.c:896:35:
warning: variable ‘prev’ set but not used

Detected when running make with W=1.
Signed-off-by: default avatarNiklas Cassel <nks@flawful.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 9e39d28f
......@@ -893,7 +893,7 @@ static int cpr_fuse_corner_init(struct cpr_drv *drv)
int i;
unsigned int step_volt;
struct fuse_corner_data *fdata;
struct fuse_corner *fuse, *end, *prev;
struct fuse_corner *fuse, *end;
int uV;
const struct reg_sequence *accs;
int ret;
......@@ -909,7 +909,7 @@ static int cpr_fuse_corner_init(struct cpr_drv *drv)
end = &fuse[desc->num_fuse_corners - 1];
fdata = desc->cpr_fuses.fuse_corner_data;
for (i = 0, prev = NULL; fuse <= end; fuse++, fuses++, i++, fdata++) {
for (i = 0; fuse <= end; fuse++, fuses++, i++, fdata++) {
/*
* Update SoC voltages: platforms might choose a different
* regulators than the one used to characterize the algorithms
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment