From: Sachin Kamat Date: Thu, 26 Dec 2013 09:09:03 +0000 (+0530) Subject: regulator: s2mps11: Clean up redundant code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=699b36973df9d70231c48302b1bafe06be52a0c7;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git regulator: s2mps11: Clean up redundant code BUCK 3 and 4 share the same ramp delay. Hence make it a fall through case instead of duplicating the code. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index 333677d68d0e..39fbe6a10c14 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c @@ -70,8 +70,6 @@ static int s2mps11_regulator_set_voltage_time_sel(struct regulator_dev *rdev, ramp_delay = s2mps11->ramp_delay2; break; case S2MPS11_BUCK3: - ramp_delay = s2mps11->ramp_delay34; - break; case S2MPS11_BUCK4: ramp_delay = s2mps11->ramp_delay34; break;