DORMANTno replies

[PATCH 1/5] matroxfb: Remove an unused wait queue entry

From: syrjala@sci.fi
Date: 2005-10-31 22:12:28

wait_event_event_interruptible() uses a private wait queue entry so 
there's no need for the caller to initialize one.

Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
---

 matroxfb_base.c |    2 --
 1 file changed, 2 deletions(-)

diff -uprN linux-2.6.14-0/drivers/video/matrox/matroxfb_base.c linux-2.6.14-1/drivers/video/matrox/matroxfb_base.c
--- linux-2.6.14-0/drivers/video/matrox/matroxfb_base.c	2005-10-28 03:02:08.000000000 +0300
+++ linux-2.6.14-1/drivers/video/matrox/matroxfb_base.c	2005-10-31 17:44:11.000000000 +0200
@@ -264,7 +264,6 @@ static void matroxfb_disable_irq(WPMINFO
 }
 
 int matroxfb_wait_for_sync(WPMINFO u_int32_t crtc) {
-	wait_queue_t __wait;
 	struct matrox_vsync *vs;
 	unsigned int cnt;
 	int ret;
@@ -286,7 +285,6 @@ int matroxfb_wait_for_sync(WPMINFO u_int
 	if (ret) {
 		return ret;
 	}
-        init_waitqueue_entry(&__wait, current);
 
 	cnt = vs->cnt;
 	ret = wait_event_interruptible_timeout(vs->wait, cnt != vs->cnt, HZ/10);



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help