Remove two unnecessary casts that prevented compilation on Linux 2.2.
authorNickolai Zeldovich <kolya@mit.edu>
Mon, 29 Jul 2002 23:48:39 +0000 (23:48 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Mon, 29 Jul 2002 23:48:39 +0000 (23:48 +0000)
src/rx/LINUX/rx_kmutex.c

index 1df1810..eecddc5 100644 (file)
@@ -75,7 +75,7 @@ int afs_cv_wait(afs_kcondvar_t *cv, afs_kmutex_t *l, int sigok)
     struct wait_queue wait = { current, NULL };
 #endif
 
-    add_wait_queue((wait_queue_head_t *)cv, &wait);
+    add_wait_queue(cv, &wait);
     set_current_state(TASK_INTERRUPTIBLE);
 
     if (isAFSGlocked) AFS_GUNLOCK();
@@ -115,7 +115,7 @@ void afs_cv_timedwait(afs_kcondvar_t *cv, afs_kmutex_t *l, int waittime)
     struct wait_queue wait = { current, NULL };
 #endif
 
-    add_wait_queue((wait_queue_head_t *)cv, &wait);
+    add_wait_queue(cv, &wait);
     set_current_state(TASK_INTERRUPTIBLE);
 
     if (isAFSGlocked) AFS_GUNLOCK();