From: Nickolai Zeldovich Date: Tue, 30 Jul 2002 08:04:39 +0000 (+0000) Subject: Remove two unnecessary casts that prevented compilation on Linux 2.2. X-Git-Tag: openafs-stable-1_2_6~20 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=027a7c9c070f233403667028df9d13988241fa1a;p=packages%2Fo%2Fopenafs.git Remove two unnecessary casts that prevented compilation on Linux 2.2. (cherry picked from commit e9a6a539449ff3144169aa8ca5fc38bab613ab53) --- 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();