Skip to content

Commit dc1adb3

Browse files
ColinIanKingthierryreding
authored andcommitted
pwm: atmel: Remove redundant initialization of variable timeout
The variable timeout is being initialized with a value that is never read, it is being re-assigned the same value later on. Remove the redundant initialization and keep the latter assignment because it's closer to the use of the variable. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 4122e90 commit dc1adb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pwm/pwm-atmel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static void atmel_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm,
271271
bool disable_clk)
272272
{
273273
struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip);
274-
unsigned long timeout = jiffies + 2 * HZ;
274+
unsigned long timeout;
275275

276276
atmel_pwm_wait_nonpending(atmel_pwm, pwm->hwpwm);
277277

0 commit comments

Comments
 (0)