diff options
author | marcel <marcel@FreeBSD.org> | 2006-08-31 23:31:18 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-08-31 23:31:18 +0000 |
commit | 6a1762d5890456662149cbd666c2a83af310d9c2 (patch) | |
tree | f68b93b437d5609a74071645730c86c5f380ee6b /lib/libthr | |
parent | 907b65e65a740494683b82f62b1d6d0f0d7e9254 (diff) | |
download | FreeBSD-src-6a1762d5890456662149cbd666c2a83af310d9c2.zip FreeBSD-src-6a1762d5890456662149cbd666c2a83af310d9c2.tar.gz |
Stylize.
Diffstat (limited to 'lib/libthr')
-rw-r--r-- | lib/libthr/arch/ia64/ia64/pthread_md.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libthr/arch/ia64/ia64/pthread_md.c b/lib/libthr/arch/ia64/ia64/pthread_md.c index a662949..e0e837e 100644 --- a/lib/libthr/arch/ia64/ia64/pthread_md.c +++ b/lib/libthr/arch/ia64/ia64/pthread_md.c @@ -39,13 +39,9 @@ struct tcb * _tcb_ctor(struct pthread *thread, int initial) { struct tcb *tcb; - void *oldtls; - if (initial) - oldtls = _tp; - else - oldtls = NULL; - tcb = _rtld_allocate_tls(oldtls, sizeof(struct tcb), 16); + tcb = _rtld_allocate_tls((initial) ? _tp : NULL, + sizeof(struct tcb), 16); if (tcb) tcb->tcb_thread = thread; return (tcb); |