From: Colin Ian King Date: Thu, 2 Apr 2020 11:08:57 +0000 (+0100) Subject: pwm: meson: Remove redundant assignment to variable fin_freq X-Git-Tag: v5.7-rc1~21^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=437fb760d046340d0dee3b4307e1cf4578fd8ca8;p=linux-block.git pwm: meson: Remove redundant assignment to variable fin_freq 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 Acked-by: Uwe Kleine-König Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index 8cf9129caa39..bd0d7336b898 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -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;