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>
This commit is contained in:
committed by
Thierry Reding
parent
3b2fb67ada
commit
1b98ad3b3b
@@ -156,7 +156,6 @@ static int sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm,
|
|||||||
if (sun4i_pwm->data->has_prescaler_bypass) {
|
if (sun4i_pwm->data->has_prescaler_bypass) {
|
||||||
/* First, test without any prescaler when available */
|
/* First, test without any prescaler when available */
|
||||||
prescaler = PWM_PRESCAL_MASK;
|
prescaler = PWM_PRESCAL_MASK;
|
||||||
pval = 1;
|
|
||||||
/*
|
/*
|
||||||
* When not using any prescaler, the clock period in nanoseconds
|
* When not using any prescaler, the clock period in nanoseconds
|
||||||
* is not an integer so round it half up instead of
|
* is not an integer so round it half up instead of
|
||||||
|
Reference in New Issue
Block a user