diff mbox

[3/3] Input: elan_i2c - Remove duplicate repeat code

Message ID 1425804245-23954-1-git-send-email-dusonlin@emc.com.tw (mailing list archive)
State New, archived
Headers show

Commit Message

Duson Lin March 8, 2015, 8:44 a.m. UTC
Remove duplicate "repeat--" from function elan_initialize.

Signed-off-by: Duson Lin <dusonlin@emc.com.tw>
---
 drivers/input/mouse/elan_i2c_core.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Dmitry Torokhov March 8, 2015, 9:14 p.m. UTC | #1
On Sun, Mar 08, 2015 at 04:44:05PM +0800, Duson Lin wrote:
> Remove duplicate "repeat--" from function elan_initialize.
> 
> Signed-off-by: Duson Lin <dusonlin@emc.com.tw>

Applied, thank you.

> ---
>  drivers/input/mouse/elan_i2c_core.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
> index f24078b..4b970e2 100644
> --- a/drivers/input/mouse/elan_i2c_core.c
> +++ b/drivers/input/mouse/elan_i2c_core.c
> @@ -198,7 +198,6 @@ static int elan_initialize(struct elan_tp_data *data)
>  		if (!error)
>  			return 0;
>  
> -		repeat--;
>  		msleep(30);
>  	} while (--repeat > 0);
>  
> -- 
> 1.7.10.4
>
diff mbox

Patch

diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
index f24078b..4b970e2 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -198,7 +198,6 @@  static int elan_initialize(struct elan_tp_data *data)
 		if (!error)
 			return 0;
 
-		repeat--;
 		msleep(30);
 	} while (--repeat > 0);