]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pwm: sun4i: Drop redundant assignment to variable pval
authorColin Ian King <colin.king@canonical.com>
Wed, 2 Oct 2019 10:08:44 +0000 (11:08 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Oct 2019 14:49:58 +0000 (16:49 +0200)
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>
drivers/pwm/pwm-sun4i.c

index 6f5840a1a82dc1909aad7e6d61632aea8a7b8271..53970d4ba695a8cd2f55ea974e6742c0c6750b88 100644 (file)
@@ -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