From 027a7c9c070f233403667028df9d13988241fa1a Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Tue, 30 Jul 2002 08:04:39 +0000 Subject: [PATCH] Remove two unnecessary casts that prevented compilation on Linux 2.2. (cherry picked from commit e9a6a539449ff3144169aa8ca5fc38bab613ab53) --- src/rx/LINUX/rx_kmutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rx/LINUX/rx_kmutex.h b/src/rx/LINUX/rx_kmutex.h index 34ab41c31..3d09fc6ea 100644 --- a/src/rx/LINUX/rx_kmutex.h +++ b/src/rx/LINUX/rx_kmutex.h @@ -113,7 +113,7 @@ static inline int CV_WAIT(afs_kcondvar_t *cv, afs_kmutex_t *l) 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(); @@ -150,7 +150,7 @@ static inline int 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(); -- 2.39.5