]> Git Repo - linux.git/commitdiff
pwm: meson: Remove redundant assignment to variable fin_freq
authorColin Ian King <[email protected]>
Thu, 2 Apr 2020 11:08:57 +0000 (12:08 +0100)
committerThierry Reding <[email protected]>
Fri, 3 Apr 2020 19:40:56 +0000 (21:40 +0200)
The variable fin_freq is being initialized with a value that is never
read and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
drivers/pwm/pwm-meson.c

index 8cf9129caa392a620328ece37a0ee92eb351f37c..bd0d7336b8983beefc9c3cebe0e601dd6955ed31 100644 (file)
@@ -163,7 +163,7 @@ static int meson_pwm_calc(struct meson_pwm *meson, struct pwm_device *pwm,
 {
        struct meson_pwm_channel *channel = pwm_get_chip_data(pwm);
        unsigned int duty, period, pre_div, cnt, duty_cnt;
-       unsigned long fin_freq = -1;
+       unsigned long fin_freq;
 
        duty = state->duty_cycle;
        period = state->period;
This page took 0.06038 seconds and 4 git commands to generate.