Skip to content

Commit 437fb76

Browse files
Colin Ian Kingthierryreding
authored andcommitted
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 <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent a2005fc commit 437fb76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm-meson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static int meson_pwm_calc(struct meson_pwm *meson, struct pwm_device *pwm,
163163
{
164164
struct meson_pwm_channel *channel = pwm_get_chip_data(pwm);
165165
unsigned int duty, period, pre_div, cnt, duty_cnt;
166-
unsigned long fin_freq = -1;
166+
unsigned long fin_freq;
167167

168168
duty = state->duty_cycle;
169169
period = state->period;

0 commit comments

Comments
 (0)