Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Thierry Reding
dc1adb3c 4122e903

+1 -1
+1 -1
drivers/pwm/pwm-atmel.c
··· 271 271 bool disable_clk) 272 272 { 273 273 struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); 274 - unsigned long timeout = jiffies + 2 * HZ; 274 + unsigned long timeout; 275 275 276 276 atmel_pwm_wait_nonpending(atmel_pwm, pwm->hwpwm); 277 277