From 058951bb80bed643b0a0c57b1d4da1889d92626e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 22 Jan 2019 22:08:07 +0100 Subject: [PATCH] devtls: remove static "already" flag in tlsinit(). this function is only run once. --- sys/src/9/port/devtls.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/src/9/port/devtls.c b/sys/src/9/port/devtls.c index 7ed6d2755..177d8ecb4 100644 --- a/sys/src/9/port/devtls.c +++ b/sys/src/9/port/devtls.c @@ -1793,12 +1793,8 @@ tlsinit(void) struct Hashalg *h; int n; char *cp; - static int already; - if(!already){ - fmtinstall('H', encodefmt); - already = 1; - } + fmtinstall('H', encodefmt); tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs); trnames = smalloc((sizeof *trnames) * maxtlsdevs); -- 2.44.0