mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
Remove two unnecessary casts that prevented compilation on Linux 2.2.
This commit is contained in:
parent
f9677cc5d0
commit
e9a6a53944
@ -75,7 +75,7 @@ int afs_cv_wait(afs_kcondvar_t *cv, afs_kmutex_t *l, int sigok)
|
|||||||
struct wait_queue wait = { current, NULL };
|
struct wait_queue wait = { current, NULL };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
add_wait_queue((wait_queue_head_t *)cv, &wait);
|
add_wait_queue(cv, &wait);
|
||||||
set_current_state(TASK_INTERRUPTIBLE);
|
set_current_state(TASK_INTERRUPTIBLE);
|
||||||
|
|
||||||
if (isAFSGlocked) AFS_GUNLOCK();
|
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 };
|
struct wait_queue wait = { current, NULL };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
add_wait_queue((wait_queue_head_t *)cv, &wait);
|
add_wait_queue(cv, &wait);
|
||||||
set_current_state(TASK_INTERRUPTIBLE);
|
set_current_state(TASK_INTERRUPTIBLE);
|
||||||
|
|
||||||
if (isAFSGlocked) AFS_GUNLOCK();
|
if (isAFSGlocked) AFS_GUNLOCK();
|
||||||
|
Loading…
Reference in New Issue
Block a user