INPUT: mainstone-wm97xx, fix condition in pen_up
Subsystems (2)
PATCH 1/1 INPUT: mainstone-wm97xx, fix condition in pen_up
The loop body was never executed, because the condition is always false. Convert to for with more obvious condition.
Signed-off-by Jiri Slaby <[email protected]>
Cc Mark Brown <[email protected]>
Cc Liam Girdwood <[email protected]>
--- drivers/input/touchscreen/mainstone-wm97xx.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/input/touchscreen/mainstone-wm97xx.c +3 -4
@@ -111,13 +111,12 @@ static void wm97xx_acc_pen_up(struct wm97xx *wm)#else static void wm97xx_acc_pen_up (struct wm97xx *wm) { -int count =16 ; +unsigned int count; +schedule_timeout_uninterruptible (1 ); -while (count <16 ) { +for (count =0 ; count <16 ; count++)MODR ; - count--; - } }#endif
Signature · 1 line
1.6.2
Quoted 4 lines · Jiri Slaby
The loop body was never executed, because the condition is always false. Convert to for with more obvious condition.
Signed-off-by Jiri Slaby <[email protected]>
Acked-by Mark Brown <[email protected]>
On Wed, Apr 15, 2009 at 01:00:32PM +0100, Mark Brown wrote
Quoted 7 lines · Jiri Slaby
Quoted 4 lines
The loop body was never executed, because the condition is always false. Convert to for with more obvious condition.
Signed-off-by Jiri Slaby <[email protected]>Acked-by Mark Brown <[email protected]>
Applied, thanks Jiri.
Signature · 1 line
Dmitry