From: Colin Ian King <hidden> Date: 2021-12-10 00:22:55
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 <redacted>
---
drivers/pwm/pwm-atmel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Fri, Dec 10, 2021 at 12:22:50AM +0000, Colin Ian King wrote:
quoted hunk
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 <redacted>
---
drivers/pwm/pwm-atmel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Uwe Kleine-König <redacted>
Did you spot this by using some static checker? If so, maybe attribute
it in the commit log?
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
From: Colin King (gmail) <hidden> Date: 2021-12-10 09:02:20
On 10/12/2021 07:45, Uwe Kleine-König wrote:
On Fri, Dec 10, 2021 at 12:22:50AM +0000, Colin Ian King wrote:
quoted
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 <redacted>
---
drivers/pwm/pwm-atmel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Fri, Dec 10, 2021 at 12:22:50AM +0000, Colin Ian King wrote:
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 <redacted>
---
drivers/pwm/pwm-atmel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)