Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8abacc57 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

pwm: meson: Remove redundant assignment to variable fin_freq



[ Upstream commit 437fb760d046340d0dee3b4307e1cf4578fd8ca8 ]

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
Stable-dep-of: 87a2cbf02d77 ("pwm: meson: fix handling of period/duty if greater than UINT_MAX")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 680e1455
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;