diff options
| author | Colin Ian King <[email protected]> | 2021-12-10 00:22:50 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2022-02-24 12:54:05 +0000 |
| commit | dc1adb3ce478bfd1f945f561768fb0fac8e13c28 (patch) | |
| tree | ddc6b12c576eeffe3898398feeafcd2924b089a6 /drivers/pwm/pwm-atmel.c | |
| parent | pwm: raspberrypi-poe: Drop assignment to struct pwmchip::base (diff) | |
| download | kernel-dc1adb3ce478bfd1f945f561768fb0fac8e13c28.tar.gz kernel-dc1adb3ce478bfd1f945f561768fb0fac8e13c28.zip | |
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 <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-atmel.c')
| -rw-r--r-- | drivers/pwm/pwm-atmel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index 98b34ea9f38e..8e00a4286145 100644 --- a/drivers/pwm/pwm-atmel.c +++ b/drivers/pwm/pwm-atmel.c @@ -271,7 +271,7 @@ static void atmel_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm, bool disable_clk) { struct atmel_pwm_chip *atmel_pwm = to_atmel_pwm_chip(chip); - unsigned long timeout = jiffies + 2 * HZ; + unsigned long timeout; atmel_pwm_wait_nonpending(atmel_pwm, pwm->hwpwm); |
