diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-10-02 11:08:44 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-10-21 16:49:58 +0200 |
commit | 1b98ad3b3be98f2c99f4d63679511eb97a26b8bb (patch) | |
tree | a5a56e68a3d45f45d8f13c5740c5f100973e3425 /drivers/pwm | |
parent | 3b2fb67ada60cdde30dca01e0c06b45f7391f8b2 (diff) |
pwm: sun4i: Drop redundant assignment to variable pval
Variable pval is being assigned a value that is never read. The
assignment is redundant and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-sun4i.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c index 6f5840a1a82d..53970d4ba695 100644 --- a/drivers/pwm/pwm-sun4i.c +++ b/drivers/pwm/pwm-sun4i.c @@ -156,7 +156,6 @@ static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm, if (sun4i_pwm->data->has_prescaler_bypass) { /* First, test without any prescaler when available */ prescaler = PWM_PRESCAL_MASK; - pval = 1; /* * When not using any prescaler, the clock period in nanoseconds * is not an integer so round it half up instead of |